Exemplo n.º 1
0
	public void convertToArcher(NPC target)
	{
		var npc = new Archer ();
		npc.name = "converted archer";
		npc.hp += target.hp;
		npc.maxHp += target.maxHp;

		npc.mp += target.mp;
		npc.maxMp += target.maxMp;
		npc.position = target.position;
		Game.removeNPC (target);
		target.killNPC ();
		Board.tiles [npc.position].npc = npc;
		messiah.party.addNPC (npc);
		messiah.party.p.removeArcherResource ();
		Game.addNPC (npc);
	}