public void UseItem(LinkUseItemHelper itemHelper) { if (player.CurrentItem != PlayerItems.None && player.CurrentItem != PlayerItems.BlueCandle) { player.ItemCounts[(int)player.CurrentItem]--; } itemHelper.UseItem(); player.State = new DownUseItemState(player); }
public void HandleSword(LinkUseItemHelper itemHelper) { itemHelper.UseSword(player.Health == player.MaxHealth); player.State = new DownWoodSwordState(player); }
public void HandleRod(LinkUseItemHelper itemHelper) { itemHelper.UseSword(true); player.State = new UpWoodSwordState(player); }