Initial refactor of damagetype
This commit is contained in:
@@ -90,7 +90,7 @@ public class RepairMsgHandler extends AbstractClientMsgHandler {
|
||||
|
||||
//account for durability modifications
|
||||
|
||||
float durMod = toRepair.getBonusPercent(Enum.ModType.Durability, Enum.SourceType.NONE);
|
||||
float durMod = toRepair.getBonusPercent(Enum.ModType.Durability, Enum.SourceType.None);
|
||||
max *= (1 + (durMod * 0.01f));
|
||||
|
||||
if (dur >= max || dur < 1) {
|
||||
|
||||
@@ -149,7 +149,7 @@ public class TrackWindowMsgHandler extends AbstractClientMsgHandler {
|
||||
else if (awo.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)) {
|
||||
PlayerBonuses bonus = ((PlayerCharacter) awo).getBonuses();
|
||||
|
||||
if (bonus != null && bonus.getBool(Enum.ModType.CannotTrack, Enum.SourceType.NONE))
|
||||
if (bonus != null && bonus.getBool(Enum.ModType.CannotTrack, Enum.SourceType.None))
|
||||
it.remove();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user