Created
August 13, 2023 02:44
-
-
Save its-jackson/1abba56f18b94810907ee6636f53fdc9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package scripts.kotlin.api.framework.routine.api.interfaces | |
import scripts.kotlin.api.framework.routine.api.Consumable | |
interface TribotConsumableManager : ConsumableManager { | |
val consumables: Array<Consumable> | |
override fun checkAll(): Consumable? { | |
for (c in consumables) { | |
if (consume(c)) { | |
logger.debug("Consumed: $c") | |
logger.debug("Total doses left for $c: ${c.getTotalDoses()}") | |
return c | |
} | |
} | |
return null | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment