public void EquipMagic(int magicid) { PlayerRepo repo = new PlayerRepo(new PlayerQuery()); repo.EquipItem(magicid, CurrentPlayer.Id, "Magic"); SetPlayer(CurrentPlayer.Id); }
public void EquipItem(int itemid, string itemtype) { PlayerRepo repo = new PlayerRepo(new PlayerQuery()); repo.EquipItem(itemid, CurrentPlayer.Id, itemtype); CurrentPlayer = repo.GetPlayer(CurrentPlayer.Id); }