public void convertMage(NPC npc){ if (ressource.blood >= 3) { ressource.blood -= 3; int position = npc.position; npc = new Mage (); npc.setPosition (position); this.party.addNPC (npc); } }