mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +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();
|
onLifeTotalChangeList.emit();
|
||||||
}
|
}
|
||||||
public void defeated() {
|
public void defeated() {
|
||||||
gold=gold/2;
|
percentLoss = 10
|
||||||
|
gold=gold-(gold*percentLoss/100);
|
||||||
life=Math.max(1,(int)(life-(maxLife*0.2f)));
|
life=Math.max(1,(int)(life-(maxLife*0.2f)));
|
||||||
onLifeTotalChangeList.emit();
|
onLifeTotalChangeList.emit();
|
||||||
onGoldChangeList.emit();
|
onGoldChangeList.emit();
|
||||||
|
|||||||
Reference in New Issue
Block a user