Rebalance defeat gold loss (#1111)

added percent loss to defeated
changed gold loss to be calculated by a variable percentage loss not static divide by two.
This commit is contained in:
Austere Grim
2022-07-12 22:34:42 -07:00
committed by GitHub
parent 5d4fcb55db
commit 5280e26066

View File

@@ -457,7 +457,8 @@ public class AdventurePlayer implements Serializable, SaveFileContent {
onLifeTotalChangeList.emit();
}
public void defeated() {
gold=gold/2;
percentLoss = 10
gold=gold-(gold*percentLoss/100);
life=Math.max(1,(int)(life-(maxLife*0.2f)));
onLifeTotalChangeList.emit();
onGoldChangeList.emit();