updates
This commit is contained in:
parent
0cba7f5ee0
commit
32ed347b58
172 changed files with 5464 additions and 582 deletions
|
|
@ -35,7 +35,7 @@ static func shed_hardware(s: Dictionary, r: Dictionary) -> void:
|
|||
hw = list[i]
|
||||
break
|
||||
State.uninstall_hardware(s, hw)
|
||||
State.to_discard(s, hw)
|
||||
State.to_discard(s, hw, "worn", "shed")
|
||||
State.stat(s, "hardwareLost", r.player)
|
||||
State.say(s, "%s is out of Expansion Slots and discards %s." % [State.anomaly_name(s, r), State.name_of(s, hw)])
|
||||
|
||||
|
|
@ -57,6 +57,7 @@ static func _wearing(wearer: Variant, r: Dictionary) -> bool:
|
|||
static func attach_hardware(s: Dictionary, card: int, r: Dictionary) -> void:
|
||||
State.remove_from(s.players[r.player].hand, card)
|
||||
State.anomaly(s, r).hardware.append(card)
|
||||
State.emit_install(s, card, "anomaly:%d:%d" % [r.player, r.slot])
|
||||
s.cards[card].installedTurn = s.turn
|
||||
State.stat(s, "hardwareInstalled", r.player)
|
||||
State.played(s, State.name_of(s, card), r.player)
|
||||
|
|
@ -264,7 +265,7 @@ static func _raid_defeated(s: Dictionary, _hw: int, ev: Dictionary) -> bool:
|
|||
|
||||
static func _raid_keep(s: Dictionary, data: Dictionary, keep: Variant) -> void:
|
||||
if keep:
|
||||
s.players[data.ref.player].bandwidth -= data.cost
|
||||
State.add_bandwidth(s, data.ref.player, -data.cost)
|
||||
State.stat(s, "bandwidthOnCards", data.ref.player, data.cost)
|
||||
State.fired(s, "RAID Array", data.ref.player)
|
||||
Flow.knock_out(s, data.ref, data.loc, data.role, keep)
|
||||
|
|
@ -366,7 +367,7 @@ static func _hot_swap_resolve(s: Dictionary, item: Dictionary, src: Dictionary)
|
|||
if not Query.slots_fit(s, r, out_card, into):
|
||||
return
|
||||
State.uninstall_hardware(s, out_card)
|
||||
State.to_hand(s, out_card)
|
||||
State.to_hand(s, out_card, "worn")
|
||||
attach_hardware(s, into, r)
|
||||
State.fired(s, "Hot-Swap Bay", src.controller)
|
||||
State.say(s, "Hot-Swap Bay swaps %s for %s on %s." % [State.name_of(s, out_card), State.name_of(s, into), State.anomaly_name(s, r)])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue