mirror of
https://github.com/zeldaret/st
synced 2026-10-25 03:50:48 -04:00
Match ActorBlast and progress on ActorItemBoomerang and ActorItemTornado (#160)
* ActorBlast OK * ActorItemBoomerang 99% * ActorItemTornado 99%
This commit is contained in:
@@ -31,6 +31,18 @@ struct Timer {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool HasExpiredAlt() {
|
||||
bool ret = false;
|
||||
|
||||
if (this->value >= this->max) {
|
||||
ret = true;
|
||||
} else {
|
||||
this->value++;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
void Set(u16 value, u16 max) {
|
||||
this->max = max;
|
||||
this->value = value;
|
||||
|
||||
Reference in New Issue
Block a user