Skip to content
Track dragon kills in your realm.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.gitignore
.travis.yml
LICENSE
README.md
composer.json
composer.lock
lotgd.yml
phpunit.xml
t

README.md

Module: Dragon Kills

Build Status

Adds the green dragon to the forest to challenge if the character reached level 15. Additionaly, it keeps track of the dragon kills in your realm and stores the kill count on the character model.

API

Events

  • e/lotgd/dragon-kills/kill (Module::DragonKilledEvent)
    This module publishes this event if a dragon has been slain. It can be used to reset the character and strip him from his achievements.

Character Model Extension Methods

  • getDragonKillCount(): int
    Returns the number of dragon a character has killed.

  • setDragonKillCount(int $killCount)
    Sets the number of dragons a character has killed. Used internally and does not synchronize with the dragon kill log.

  • incrementDragonKillCountForCharacter()
    Increments the number of dragons a character has killed by 1. Used internally and does not synchronize with the dragon kill log.

Character Properties

  • int lotgd/module-dragon-kills/dk (Module::CharacterPropertyDragonKills) The number of dragons a character has killed (use $c->getDragonKillCount() to access it)

  • bool lotgd/module-dragon-kills/seenDragon (Module::CharacterPropertySeenDragon) True if the character has challenged the dragon already and lost. False if not.

You can’t perform that action at this time.