diff --git a/game.py b/game.py index 56d8dac..2e71460 100644 --- a/game.py +++ b/game.py @@ -18,6 +18,7 @@ BASE_SLOTS = 12 BASE_STACK = 1000 CLASS_SPEED = 0.8 LUCKY_CHANCE = 0.1 +OVERFLOW_FAVOUR = 0.5 # favour for items a full bank spills to the city, vs. giving on purpose RECON_PER_INTEL = 8 MAX_LOG = 200 REGEN_PER_HOUR = 0.25 # share of max HP recovered per game hour @@ -452,7 +453,7 @@ def bank_add(world: dict, player: dict, item: str, qty: int, now: float, overflo stockpile = world["city"]["stockpile"] stockpile[item] = stockpile.get(item, 0) + spill gain = spill * ITEMS[item]["value"] - player["favour"] += gain + player["favour"] += gain * OVERFLOW_FAVOUR player["donated"] += gain overflow[item] = overflow.get(item, 0) + spill return keep diff --git a/static/app.js b/static/app.js index e7c6a71..614d01c 100644 --- a/static/app.js +++ b/static/app.js @@ -150,7 +150,7 @@ function awayModal(sum) { ${sum.gold ? `
+${fmt(sum.gold)} gold
` : ""} ${xp ? `Your bank was full, so this went to the city stockpile (you earned favour for it):
Your bank was full, so this went to the city stockpile (for half the favour of giving it yourself):
Stopped: ${esc(sum.stopped)}
` : ""} `); } @@ -421,7 +421,7 @@ function bank() {When an item doesn't fit:
-
Raids never touch your bank. Overflow sent to the city still earns favour.