updates
This commit is contained in:
parent
0cba7f5ee0
commit
32ed347b58
172 changed files with 5464 additions and 582 deletions
|
|
@ -356,7 +356,7 @@ static func pay(s: Dictionary, payment: Dictionary, stat_key: String) -> int:
|
|||
var cost := maxi(0, n)
|
||||
if cost > s.players[payment.player].bandwidth:
|
||||
Util.fail("Can't afford %d Gb" % cost)
|
||||
s.players[payment.player].bandwidth -= cost
|
||||
State.add_bandwidth(s, payment.player, -cost)
|
||||
State.stat(s, stat_key, payment.player, cost)
|
||||
for src in touched:
|
||||
var sc := CardScripts.of(src.name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue