updates
This commit is contained in:
parent
0cba7f5ee0
commit
32ed347b58
172 changed files with 5464 additions and 582 deletions
|
|
@ -247,7 +247,7 @@ static func _sabotage_resolve(s: Dictionary, item: Dictionary) -> void:
|
|||
State.fired(s, item.name, item.player)
|
||||
if item.args.mode == "destroy":
|
||||
State.uninstall_hardware(s, hw)
|
||||
State.to_discard(s, hw)
|
||||
State.to_discard(s, hw, "worn", "destroyed")
|
||||
State.stat(s, "hardwareLost", owner.player)
|
||||
State.say(s, "Sabotage destroys %s." % State.name_of(s, hw))
|
||||
HardwareCards.shed_hardware(s, owner)
|
||||
|
|
@ -400,7 +400,7 @@ static func _dump_discard(s: Dictionary, data: Dictionary, _value: Variant) -> v
|
|||
|
||||
static func _dump_drop(s: Dictionary, data: Dictionary, card: Variant) -> void:
|
||||
if State.remove_from(s.players[data.player].hand, card):
|
||||
State.to_discard(s, card)
|
||||
State.to_discard(s, card, "hand", "discarded")
|
||||
|
||||
|
||||
# Rollback
|
||||
|
|
@ -421,7 +421,7 @@ static func _rollback_resolve(s: Dictionary, item: Dictionary) -> void:
|
|||
var wearer = State.wearer_of(s, card)
|
||||
if State.uninstall_program(s, card) == null and State.uninstall_hardware(s, card) == null:
|
||||
return
|
||||
State.to_hand(s, card)
|
||||
State.to_hand(s, card, "worn" if wearer != null else "play")
|
||||
State.fired(s, item.name, item.player)
|
||||
State.say(s, "Rollback returns %s to %s's hand." % [State.name_of(s, card), State.player_name(State.owner_of(s, card))])
|
||||
if wearer != null:
|
||||
|
|
@ -565,8 +565,10 @@ static func _purge_resolve(s: Dictionary, item: Dictionary) -> void:
|
|||
var here := CardUtil.mine(s, item.player, loc)
|
||||
for r in here:
|
||||
var av := State.anomaly(s, r)
|
||||
var counters := State.counters_of(av)
|
||||
av.infection = 0
|
||||
av.permanentInfection = 0
|
||||
State.emit_counters(s, r, counters)
|
||||
av.mods = av.mods.filter(func(m): return m.cores >= 0 or m.by == item.player)
|
||||
av.rootedUntil = 0
|
||||
av.disabledUntil = 0
|
||||
|
|
@ -591,7 +593,7 @@ static func _reset_resolve(s: Dictionary, item: Dictionary) -> void:
|
|||
var back: Array = item.args.cards.filter(func(id): return State.program_location(s, id) == item.target)
|
||||
for id in back:
|
||||
State.uninstall_program(s, id)
|
||||
State.to_hand(s, id)
|
||||
State.to_hand(s, id, "play")
|
||||
var gain: int = back.size() * (1 + item.power)
|
||||
State.gain_bandwidth(s, item.player, gain)
|
||||
State.fired(s, item.name, item.player)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue