public void BuyEvo(Critter critter) { float pts = critter.GetEvoPts(); if (pts >= cost && !critter.activeEvos.Contains(this)) { Activate(critter); critter.ModifyEvoPts(-cost); if(isMajor && !critter.GetIsPlayer()){ EquipOpenSlot(critter); } } critter.statUpdateQueued = true; }
public bool AffordCheck(Critter critter) { bool canAfford = false; float pts = critter.GetEvoPts(); if (pts >= cost){ canAfford = true; } return canAfford; }