Changed the UIM check in finalizeDeath to HCIM

Changed the check to use .equals() rather than checkRestriction(), preventing UIMs from being affected
Added additional code to handle what happens to a player who has died in HCIM mode.
This commit is contained in:
Qweqker 2020-02-21 12:13:55 -05:00
parent fd4c1fbb95
commit c6a440856c

View file

@ -502,7 +502,8 @@ public class Player extends Entity {
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.getIronmanManager().setMode(IronmanMode.STANDARD);
asPlayer().getSavedData().getActivityData().setHardcoreDeath(1);
this.sendMessage("You have fallen as a Hardcore Iron Man, your Hardcore status has been revoked.");
}