mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Add death penality dimishing returns: Dieing within 5 minutes reduces the damage to tools. The more often you die the less it takes, until you manage to live for 5 minutes.
This commit is contained in:
1 parent
66bfc70b0f
commit
e3c3fa38ce
2 files changed
+29
No files matched your search
@@ -30,6 +30,9 @@ public class TPlayerStats implements IExtendedEntityProperties, IPlayerExtendedI
|
||||
public boolean smelteryManual;
|
||||
public boolean battlesignBonus;
|
||||
|
||||
// death-penality
|
||||
public int derpLevel;
|
||||
|
||||
public ArmorExtended armor;
|
||||
public KnapsackInventory knapsack;
|
||||
|
||||
@@ -46,6 +49,8 @@ public class TPlayerStats implements IExtendedEntityProperties, IPlayerExtendedI
|
||||
|
||||
this.knapsack = new KnapsackInventory();
|
||||
this.knapsack.init(entityplayer);
|
||||
|
||||
this.derpLevel = 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -58,6 +63,7 @@ public class TPlayerStats implements IExtendedEntityProperties, IPlayerExtendedI
|
||||
tTag.setBoolean("materialManual", this.materialManual);
|
||||
tTag.setBoolean("smelteryManual", this.smelteryManual);
|
||||
tTag.setBoolean("battlesignBonus", this.battlesignBonus);
|
||||
tTag.setInteger("derpLevel", this.derpLevel);
|
||||
compound.setTag(PROP_NAME, tTag);
|
||||
}
|
||||
|
||||
@@ -72,6 +78,7 @@ public class TPlayerStats implements IExtendedEntityProperties, IPlayerExtendedI
|
||||
this.materialManual = properties.getBoolean("materialManual");
|
||||
this.smelteryManual = properties.getBoolean("smelteryManual");
|
||||
this.battlesignBonus = properties.getBoolean("battlesignBonus");
|
||||
this.derpLevel = properties.getInteger("derpLevel");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -91,6 +98,8 @@ public class TPlayerStats implements IExtendedEntityProperties, IPlayerExtendedI
|
||||
this.smelteryManual = stats.smelteryManual;
|
||||
this.battlesignBonus = stats.battlesignBonus;
|
||||
|
||||
this.derpLevel = stats.derpLevel;
|
||||
|
||||
if (copyCalc)
|
||||
{
|
||||
this.bonusHealth = stats.bonusHealth;
|
||||
|
||||
Reference in new issue
Block a user