mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 01:38:13 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user