Offer the iron golem's poppy for 400 game ticks, not 800

OfferFlowerGoal.start sets tick to adjustedTickDelay(400), which is 200 goal ticks. Horizon counted 400 goal ticks, so the offer lasted twice as long.
This commit is contained in:
Kacpherek
2026-10-27 22:26:26 +01:00
parent 4e814a152a
commit e9eaa66542
+3 -2
View File
@@ -6,7 +6,7 @@ use super::{
anim::{Poses, State},
goals::{
Cx, Goal, HurtByTarget, LOOK, LookAtPlayer, MOVE, MeleeAttack, NearestTarget, Prey,
RandomLookAround, Stroll, goal_clone,
RandomLookAround, Stroll, goal_clone, reduced,
},
};
use crate::projectiles::{Projectile, ProjectileKind};
@@ -158,7 +158,8 @@ impl Goal for OfferFlower {
self.ticks > 0
}
fn start(&mut self, m: &mut Mob, cx: &mut Cx) {
self.ticks = 400;
// adjustedTickDelay(400): the goal ticks every other game tick.
self.ticks = reduced(400);
m.extra.counter = 400;
// IronGolem.offerFlower(true): entity event 11.
entity_event(m, 11, cx);