예제 #1
0
 internal override void HandleUnequip(Farmer who, GameLocation location)
 {
     if (_slime != null)
     {
         location.characters.Remove(_slime);
         _slime = null;
     }
 }
예제 #2
0
        internal override void HandleEquip(Farmer who, GameLocation location)
        {
            // Ensure we can force a character to appear
            if (location.characters is null)
            {
                return;
            }

            // Spawn slime
            _slime = new SlimeFollower(who.getTileLocation());

            location.characters.Add(_slime);
        }