diff --git a/Server/src/org/crandor/game/node/entity/player/Player.java b/Server/src/org/crandor/game/node/entity/player/Player.java index 7fe4f9436..78c3a8367 100644 --- a/Server/src/org/crandor/game/node/entity/player/Player.java +++ b/Server/src/org/crandor/game/node/entity/player/Player.java @@ -202,7 +202,7 @@ public class Player extends Entity { * The saved data. */ private final SavedData savedData = new SavedData(this); - + /** * The request manager. */ @@ -282,17 +282,17 @@ public class Player extends Entity { * The boolean for the player playing. */ private boolean playing; - - /** - * If the player is invisible. - */ - private boolean invisible; + + /** + * If the player is invisible. + */ + private boolean invisible; /** * If the player is artificial. */ protected boolean artificial; - + /** * The skiller tasks. */ @@ -325,12 +325,12 @@ public class Player extends Entity { super.init(); LoginConfiguration.configureLobby(this); } - + @Override public void clear() { clear(false); } - + /** * Clears the player from the game. * @param force If we should force removal, a player engaged in combat will otherwise remain active until out of combat. @@ -445,7 +445,7 @@ public class Player extends Entity { public CombatSwingHandler getSwingHandler(boolean swing) { CombatStyle style = getProperties().getCombatPulse().getStyle(); if (swing) { - int weaponId = equipment.getNew(3).getId(); + int weaponId = equipment.getNew(3).getId(); if (getProperties().getSpell() != null || getProperties().getAutocastSpell() != null) { return CombatStyle.MAGIC.getSwingHandler(); } @@ -497,9 +497,15 @@ public class Player extends Entity { return; } getPacketDispatch().sendMessage("Oh dear, you are dead!"); - if (this.getIronmanManager().checkRestriction(IronmanMode.ULTIMATE)){ - Repository.sendNews("Ultimate ironman "+this.getUsername()+" has just perished."); + + //If player was a Hardcore Ironman, announce that they died + if (this.getIronmanManager().getMode().equals(IronmanMode.HARDCORE)){ //if this was checkRestriction, ultimate irons would be moved to HARDCORE_DEAD as well + String gender = this.isMale() ? "Man " : "Woman "; + Repository.sendNews("Hardcore Iron " + gender + " " + this.getUsername() +" has fallen. Total Level: " + this.getSkills().getTotalLevel()); // Not enough room for XP + this.getIronmanManager().setMode(IronmanMode.HARDCORE_DEAD); + this.sendMessage("You have fallen as a Hardcore Iron Man, your Hardcore status has been revoked."); } + packetDispatch.sendTempMusic(90); if (!getZoneMonitor().handleDeath(killer) && (!getProperties().isSafeZone() && getZoneMonitor().getType() != ZoneType.SAFE.getId()) && getDetails().getRights() != Rights.ADMINISTRATOR) { GroundItemManager.create(new Item(526), getLocation(), k); @@ -536,10 +542,10 @@ public class Player extends Entity { inventory.addAll(c[0]); if (gravestone) { graveManager.create(ticks, items); - sendMessages("