-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grimy herb cleaning for herblore #481
Conversation
* Add `HerbCleaning.kts` for herb cleaning logic * Add `level requirement` `XP reward` on each grimy herb in `items.yml`
Am i correct in thinking if i called if(player.softTimers.contains("timername")){
player.softTimers.restart("timername")
} else {
player.softTimers.start("timername")
} |
Actually it'll just queue another timer with the same name, which would start calling For context the timer's used in the other skills are mainly for the bots so that they can know when a skill they're performing has started/stopped/failed. In this case herbs take a fixed amount of time and never fail so don't worry about having such a timer. |
game/src/main/kotlin/world/gregs/voidps/world/activity/skill/herblore/HerbCleaning.kts
Outdated
Show resolved
Hide resolved
* Add a check if the player already has a weak queue and clear it before starting a new one
Cleaning.kt
HerbCleaning.kts
for herb cleaning logiclevel requirement
XP reward
on each grimy herb initems.yml