updates
This commit is contained in:
parent
0cba7f5ee0
commit
32ed347b58
172 changed files with 5464 additions and 582 deletions
|
|
@ -38,10 +38,10 @@ static func destroy_program(s: Dictionary, id: int) -> void:
|
|||
for x in here:
|
||||
if x.name == "Version Control":
|
||||
State.fired(s, "Version Control", owner)
|
||||
State.to_hand(s, id)
|
||||
State.to_hand(s, id, "play")
|
||||
State.say(s, "Version Control: %s returns to %s's hand." % [State.name_of(s, id), State.player_name(owner)])
|
||||
return
|
||||
State.to_discard(s, id)
|
||||
State.to_discard(s, id, "play", "destroyed")
|
||||
State.say(s, "%s is destroyed." % State.name_of(s, id))
|
||||
|
||||
|
||||
|
|
@ -50,6 +50,7 @@ static func _install_free(s: Dictionary, card: int, at: String) -> void:
|
|||
var p := State.owner_of(s, card)
|
||||
State.remove_from(s.players[p].hand, card)
|
||||
s.locations[at].programs.append(card)
|
||||
State.emit_install(s, card, "loc:" + at)
|
||||
s.cards[card].installedTurn = s.turn
|
||||
State.stat(s, "programsInstalled", p)
|
||||
State.played(s, State.name_of(s, card), p)
|
||||
|
|
@ -91,6 +92,7 @@ static func _latest_penalty(s: Dictionary, av: Dictionary) -> Variant:
|
|||
|
||||
static func _remove_negative(s: Dictionary, r: Dictionary, what: String) -> void:
|
||||
var av := State.anomaly(s, r)
|
||||
var counters := State.counters_of(av)
|
||||
if what == "infection":
|
||||
av.infection -= 1
|
||||
elif what == "bug":
|
||||
|
|
@ -106,6 +108,7 @@ static func _remove_negative(s: Dictionary, r: Dictionary, what: String) -> void
|
|||
elif what.begins_with("mod:"):
|
||||
var seq := what.substr(4).to_int()
|
||||
av.mods = av.mods.filter(func(m): return m.seq != seq)
|
||||
State.emit_counters(s, r, counters)
|
||||
|
||||
|
||||
static func scripts() -> Dictionary:
|
||||
|
|
@ -575,7 +578,7 @@ static func _packet_loss_breach(s: Dictionary, src: Dictionary, ev: Dictionary)
|
|||
return
|
||||
var card: int = hand[Rng.rand_int(s.rng, hand.size())]
|
||||
State.remove_from(hand, card)
|
||||
State.to_discard(s, card)
|
||||
State.to_discard(s, card, "hand", "discarded")
|
||||
State.fired(s, "Packet Loss", src.controller)
|
||||
State.say(s, "Packet Loss: %s discards %s at random." % [State.player_name(ev.ref.player), State.name_of(s, card)])
|
||||
|
||||
|
|
@ -678,7 +681,7 @@ static func _garbage_resolve(s: Dictionary, item: Dictionary, src: Dictionary) -
|
|||
if State.program_location(s, card) != src.at:
|
||||
return
|
||||
State.uninstall_program(s, card)
|
||||
State.to_discard(s, card)
|
||||
State.to_discard(s, card, "play", "sacrificed")
|
||||
State.stat(s, "programsLost", src.controller)
|
||||
State.gain_bandwidth(s, src.controller, State.def_of(s, card).bandwidth)
|
||||
State.fired(s, "Garbage Collection", src.controller)
|
||||
|
|
@ -705,7 +708,7 @@ static func _version_captured(s: Dictionary, src: Dictionary, ev: Dictionary) ->
|
|||
static func _version_save(s: Dictionary, _data: Variant, card: Variant) -> void:
|
||||
if State.uninstall_program(s, card) == null:
|
||||
return
|
||||
State.to_hand(s, card)
|
||||
State.to_hand(s, card, "play")
|
||||
State.fired(s, "Version Control", State.owner_of(s, card))
|
||||
State.say(s, "Version Control returns %s to %s's hand." % [State.name_of(s, card), State.player_name(State.owner_of(s, card))])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue