EntityEffectConditions changed to be inclusive of min/max (#36289)
* soo hungry going back for more lipolicide * too much lipolicide..... * fixes * it moved * typo --------- Co-authored-by: iaada <iaada@users.noreply.github.com>
This commit is contained in:
@@ -18,8 +18,7 @@ public sealed partial class Hunger : EntityEffectCondition
|
||||
if (args.EntityManager.TryGetComponent(args.TargetEntity, out HungerComponent? hunger))
|
||||
{
|
||||
var total = args.EntityManager.System<HungerSystem>().GetHunger(hunger);
|
||||
if (total > Min && total < Max)
|
||||
return true;
|
||||
return total >= Min && total <= Max;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user