X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=src%2Fcreature%2Fgoal.cpp;fp=src%2Fcreature%2Fgoal.cpp;h=c7a7b66ac5f9be93024f8ab8f486edf11aa1b8ca;hp=72fc9a814d4eaec47708301b2c36b923c759275a;hb=7159e493b63552ec7de1fceec4abcb7e0e099ec0;hpb=e6a15aa6012cf8f034f3073c3d042f9a714da011 diff --git a/src/creature/goal.cpp b/src/creature/goal.cpp index 72fc9a8..c7a7b66 100644 --- a/src/creature/goal.cpp +++ b/src/creature/goal.cpp @@ -285,8 +285,8 @@ void IdleGoal::Action() { GetSteering().ResumeSeparate(); } - // use boredom as chance per minute - if (Random().UNorm() < GetStats().Boredom().value * (1.0 / 3600.0)) { + // use boredom as chance per 30s + if (Random().UNorm() < GetStats().Boredom().value * (1.0 / 1800.0)) { PickActivity(); } } @@ -355,8 +355,8 @@ void IngestGoal::Tick(double dt) { } if (ingesting) { if (OnSuitableTile() && !GetSituation().Moving()) { - GetCreature().Ingest(resource, yield * GetCreature().GetComposition().Compatibility(resource) * dt); - stat.Add(-1.0 * yield * dt); + GetCreature().Ingest(resource, yield * dt); + stat.Add(-1.0 * yield * GetCreature().GetComposition().Compatibility(resource) * dt); if (stat.Empty()) { SetComplete(); }