Proper collision methods, float values and usage.
This commit is contained in:
		@@ -88,8 +88,8 @@ public class NpcActionShift implements IActionShiftHandler
 | 
			
		||||
			html.replace("%men%", String.valueOf(npc.getMEN()));
 | 
			
		||||
			html.replace("%loc%", target.getX() + " " + target.getY() + " " + target.getZ());
 | 
			
		||||
			html.replace("%heading%", String.valueOf(npc.getHeading()));
 | 
			
		||||
			html.replace("%collision_radius%", String.valueOf(npc.getTemplate().getfCollisionRadius()));
 | 
			
		||||
			html.replace("%collision_height%", String.valueOf(npc.getTemplate().getfCollisionHeight()));
 | 
			
		||||
			html.replace("%collision_radius%", String.valueOf(npc.getTemplate().getFCollisionRadius()));
 | 
			
		||||
			html.replace("%collision_height%", String.valueOf(npc.getTemplate().getFCollisionHeight()));
 | 
			
		||||
			html.replace("%clanHall%", clanHall != null ? clanHall.getName() : "none");
 | 
			
		||||
			html.replace("%mpRewardValue%", npc.getTemplate().getMpRewardValue());
 | 
			
		||||
			html.replace("%mpRewardTicks%", npc.getTemplate().getMpRewardTicks());
 | 
			
		||||
 
 | 
			
		||||
@@ -50,7 +50,7 @@ public class Grow extends AbstractEffect
 | 
			
		||||
		{
 | 
			
		||||
			final Npc npc = (Npc) effected;
 | 
			
		||||
			npc.setCollisionHeight(npc.getTemplate().getCollisionHeight());
 | 
			
		||||
			npc.setCollisionRadius(npc.getTemplate().getfCollisionRadius());
 | 
			
		||||
			npc.setCollisionRadius(npc.getTemplate().getFCollisionRadius());
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user