public BotNeeds Minus(BotNeeds needsBefore) { BotNeeds copy = Copy(); foreach (Object need in copy.GetNeeds()) { copy.SetNeed(need, copy.GetNeed(need) - needsBefore.GetNeed(need)); } return(copy); }
public BotNeeds Magnify(float mag) { BotNeeds needsBefore = new BotNeeds(0.0F); foreach (Object fi in GetNeeds()) { needsBefore.SetNeed(fi, GetNeed(fi) * mag); } return(needsBefore); }
public BotNeeds Magnify(float mag) { BotNeeds needsBefore = new BotNeeds(0.0F); foreach (Object fi in GetNeeds()) { needsBefore.SetNeed(fi, GetNeed(fi) * mag); } return needsBefore; }