예제 #1
0
 internal override void HandleUnequip(Farmer who, GameLocation location)
 {
     if (_butterfly != null)
     {
         location.critters.Remove(_butterfly);
         _butterfly = null;
     }
 }
예제 #2
0
        internal override void HandleEquip(Farmer who, GameLocation location)
        {
            // Ensure we can force a critter to appear
            if (location.critters is null)
            {
                location.critters = new List <Critter>();
            }

            // Spawn butterfly
            _butterfly = new ButterflyFollower(who.getTileLocation());

            location.critters.Add(_butterfly);
        }