Attempts to fix loot bugs

This commit is contained in:
CharonInferar
2014-05-04 01:31:00 +02:00
parent 5e4062ae38
commit 43d1bd5ea4
7 changed files with 84 additions and 22 deletions
+2 -1
View File
@@ -32,7 +32,8 @@ public class DeathState extends AIState {
public byte onEnter(AIActor actor) {
NGECore.getInstance().aiService.awardExperience(actor);
actor.getCreature().setAttachment("radial_filename", "npc/corpse");
NGECore.getInstance().lootService.DropLoot((CreatureObject)(actor.getCreature().getKiller()),(TangibleObject)(actor.getCreature()));
System.out.println("DEATH STATE!!!!");
NGECore.getInstance().lootService.DropLoot((CreatureObject)(actor.getCreature().getKiller()),(TangibleObject)(actor.getCreature()));
actor.scheduleDespawn();
return 0;
}