updates
This commit is contained in:
parent
fa1fcbadf3
commit
624e8e299e
11 changed files with 857 additions and 58 deletions
|
|
@ -59,7 +59,7 @@ export const AVATARS: Record<string, Script> = {
|
|||
},
|
||||
|
||||
'Corrupt Driver': {
|
||||
text: 'Choose one Hardware on an enemy Avatar in combat with this Avatar. It is disabled until the end of your next turn.',
|
||||
text: 'Choose one Hardware on an enemy Avatar in combat with this Avatar. It is disabled until the end of your next command.',
|
||||
ability: {
|
||||
uses: (s, src) =>
|
||||
[...new Set(opponentsInCombat(s, src.ref!).flatMap((r) => hardwareOf(s, r)))]
|
||||
|
|
@ -91,7 +91,7 @@ export const AVATARS: Record<string, Script> = {
|
|||
// Reading: during a combat it's in, install one Hardware from hand on it (paying its cost),
|
||||
// ignoring ports. That Hardware is discarded at the end of your turn.
|
||||
'Beta Version 1.0': {
|
||||
text: 'While in combat an additional piece of hardware can be placed on this avatar until the end of your turn. If there no ports available this can still be attached.',
|
||||
text: 'While in combat an additional piece of hardware can be placed on this avatar until the end of your command. If there no ports available this can still be attached.',
|
||||
ability: {
|
||||
uses: (s, src) =>
|
||||
inCombat(s, src.ref!)
|
||||
|
|
@ -126,7 +126,7 @@ export const AVATARS: Record<string, Script> = {
|
|||
|
||||
// "Breached a Server" = captured an enemy location this turn.
|
||||
'Data Leaker': {
|
||||
text: "Look at your opponent's hand and choose one card in it. They must discard that card without gaining RAM. If this Avatar breached a Server this turn, draw a card.",
|
||||
text: "Look at your opponent's hand and choose one card in it. They must discard that card without gaining RAM. If this Avatar breached a Server this command, draw a card.",
|
||||
ability: {
|
||||
uses: (s, src) => (s.players[other(src.controller)].hand.length ? [{}] : []),
|
||||
resolve(s, _item, src) {
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ export const EXECUTIONS: Record<string, Script> = {
|
|||
},
|
||||
|
||||
'Execute: Kill Process': {
|
||||
text: "Disable one Program installed on the target Server until its controller's next turn.",
|
||||
text: "Disable one Program installed on the target Server until its controller's next command.",
|
||||
execution: {
|
||||
plays: (s, p) =>
|
||||
acrossScope(s, p, (loc) => programsOn(s, loc).filter((id) => canTargetProgram(s, id, p)).map((card) => ({ card }))),
|
||||
|
|
@ -159,7 +159,7 @@ export const EXECUTIONS: Record<string, Script> = {
|
|||
// Ruling: Servers perform Executions, so "that Avatar cannot play another Execution" stops the
|
||||
// Server it stands on from performing Executions for the rest of the turn.
|
||||
'Execute: Force Reboot': {
|
||||
text: 'Remove all temporary bonuses and penalties from one Avatar you control at the target Server, or one Avatar attacking it. That Avatar cannot play another Execution this turn.',
|
||||
text: 'Remove all temporary bonuses and penalties from one Avatar you control at the target Server, or one Avatar attacking it. That Avatar cannot play another Execution until end of current command.',
|
||||
execution: {
|
||||
plays: (s, p) =>
|
||||
acrossScope(s, p, (loc) => {
|
||||
|
|
@ -183,7 +183,7 @@ export const EXECUTIONS: Record<string, Script> = {
|
|||
},
|
||||
|
||||
'Execute: Fork': {
|
||||
text: 'Copy the localized effect of one Program installed on the target Server until end of turn.',
|
||||
text: 'Copy the localized effect of one Program installed on the target Server until end of current command.',
|
||||
execution: {
|
||||
plays: (s, p) =>
|
||||
acrossScope(s, p, (loc) => programsOn(s, loc).filter((id) => canTargetProgram(s, id, p)).map((card) => ({ card }))),
|
||||
|
|
@ -253,7 +253,7 @@ export const EXECUTIONS: Record<string, Script> = {
|
|||
},
|
||||
|
||||
'Execute: Override': {
|
||||
text: 'Choose one enemy Program installed on the target Server. Ignore its text until the end of turn.',
|
||||
text: 'Choose one enemy Program installed on the target Server. Ignore its text until end of current command.',
|
||||
execution: {
|
||||
plays: (s, p) =>
|
||||
acrossScope(s, p, (loc) =>
|
||||
|
|
@ -302,7 +302,7 @@ export const EXECUTIONS: Record<string, Script> = {
|
|||
},
|
||||
|
||||
'Execute: Rollback': {
|
||||
text: "Return one Program or Hardware installed at the target Server this turn to its owner's hand.",
|
||||
text: "Return one Program or Hardware installed at the target Server this command to its owner's hand.",
|
||||
execution: {
|
||||
plays: (s, p) =>
|
||||
acrossScope(s, p, (loc) => {
|
||||
|
|
@ -325,7 +325,7 @@ export const EXECUTIONS: Record<string, Script> = {
|
|||
|
||||
// Protected = Hardware Sandbox's Program. No card protects Hardware yet.
|
||||
'Execute: Root Access': {
|
||||
text: 'Until end of turn, your Programs and Executions at the target Server may target protected Programs and Hardware as though they were unprotected.',
|
||||
text: 'Until end of current command, your Programs and Executions at the target Server may target protected Programs and Hardware as though they were unprotected.',
|
||||
execution: {
|
||||
plays: () => LOCATIONS.map((target) => ({ target, args: {} })),
|
||||
resolve(s, item) {
|
||||
|
|
@ -337,7 +337,7 @@ export const EXECUTIONS: Record<string, Script> = {
|
|||
|
||||
// Rooted Avatars can't advance, attack, reposition, or be moved; their declared moves fail.
|
||||
'Execute: Packet Flood': {
|
||||
text: "Avatars based at the target Server cannot move or retreat until the start of their controller's next turn.",
|
||||
text: "Avatars based at the target Server cannot move or retreat until the start of their controller's next command.",
|
||||
execution: {
|
||||
plays: (s, p) => acrossScope(s, p, (loc) => (avatarsAt(s, loc).length ? [{ to: loc }] : [])),
|
||||
resolve(s, item) {
|
||||
|
|
@ -356,7 +356,7 @@ export const EXECUTIONS: Record<string, Script> = {
|
|||
|
||||
// Reading: Disabled Avatars still defend, but can't advance, attack, move or use Abilities.
|
||||
'Execute: Emergency Shutdown': {
|
||||
text: 'End any combat at the target Server immediately. All Avatars there remain and become Disabled until end of turn.',
|
||||
text: 'End any combat at the target Server immediately. All Avatars there remain and become Disabled until end of current command.',
|
||||
execution: {
|
||||
plays(s, p) {
|
||||
const c = liveCombat(s);
|
||||
|
|
@ -374,7 +374,7 @@ export const EXECUTIONS: Record<string, Script> = {
|
|||
},
|
||||
|
||||
'Execute: Process Clone': {
|
||||
text: 'Choose one Program installed on the target Server you control. Treat it as though a second copy were installed there until end of turn.',
|
||||
text: 'Choose one Program installed on the target Server you control. Treat it as though a second copy were installed there until end of current command.',
|
||||
execution: {
|
||||
plays: (s, p) =>
|
||||
LOCATIONS.filter((t) => controls(s, p, t)).flatMap((target) =>
|
||||
|
|
@ -412,7 +412,7 @@ export const EXECUTIONS: Record<string, Script> = {
|
|||
|
||||
// Reading: the Program keeps its owner, and runs at both locations until end of turn.
|
||||
'Execute: Remote Access': {
|
||||
text: 'Activate one Program installed on a Server adjacent to the target Server as though it were installed on the target Server, until end of turn.',
|
||||
text: 'Activate one Program installed on a Server adjacent to the target Server as though it were installed on the target Server, until end of current command.',
|
||||
execution: {
|
||||
plays: (s, p) =>
|
||||
LOCATIONS.flatMap((target) =>
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ export const HARDWARE: Record<string, Script> = {
|
|||
// Reading: the Program is one on the location the wearer fought from, the owner picks it, and it
|
||||
// stays disabled through the end of the next turn.
|
||||
'Overclocked CPU': {
|
||||
text: 'Avatar gains +2 Cores during combat, but one installed Program at the current server becomes disabled afterward for 2 turns.',
|
||||
text: 'Avatar gains +2 Cores during combat, but one installed Program at the current server becomes disabled afterward for 2 commands.',
|
||||
cores: (_s, _src, f) => (f.role !== null ? 2 : 0),
|
||||
onCombatEnd(s, src) {
|
||||
const c = s.combat!;
|
||||
|
|
@ -132,7 +132,7 @@ export const HARDWARE: Record<string, Script> = {
|
|||
},
|
||||
|
||||
'Solid-State Cache': {
|
||||
text: 'The first Program installed on the occupied Server each turn costs 3 less RAM.',
|
||||
text: 'The first Program installed on the occupied Server each round costs 3 less RAM.',
|
||||
costMod: (s, src, pay) =>
|
||||
pay.kind === 'program' && pay.player === src.controller && pay.at === src.at && hardwareUsesLeft(s, src.id) > 0 ? -3 : 0,
|
||||
onPaid(s, src) {
|
||||
|
|
@ -179,7 +179,7 @@ export const HARDWARE: Record<string, Script> = {
|
|||
|
||||
// Works through hardwareUsesLeft() above.
|
||||
'Cooling System': {
|
||||
text: 'Allow one Hardware to activate twice per turn.',
|
||||
text: 'Allow one Hardware to activate twice per round.',
|
||||
},
|
||||
|
||||
// Reading: half the combined printed RAM of its Hardware, rounded up.
|
||||
|
|
@ -220,7 +220,7 @@ export const HARDWARE: Record<string, Script> = {
|
|||
|
||||
// Programs never target Avatars, so this taxes Executions (and Hardware they hit).
|
||||
'Firewall Appliance': {
|
||||
text: 'The first hostile Program or Execution targeting this Avatar each turn costs the opponent +3 RAM.',
|
||||
text: 'The first hostile Program or Execution targeting this Avatar each round costs the opponent +3 RAM.',
|
||||
costMod: (s, src, pay) =>
|
||||
pay.kind === 'execution' && pay.player !== src.controller && hardwareUsesLeft(s, src.id) > 0 &&
|
||||
(pay.hostile ?? []).some((r) => wearing(src.ref, { ref: r })) ? 3 : 0,
|
||||
|
|
@ -252,7 +252,7 @@ export const HARDWARE: Record<string, Script> = {
|
|||
|
||||
// Reading: at the start of your turn, look at the top card and you may put it on the bottom.
|
||||
'Diagnostic Module': {
|
||||
text: 'Look at one face down card in your draw pile. You may place it at the bottom and draw another to start your turn.',
|
||||
text: 'Look at one face down card in your draw pile. You may place it at the bottom and draw another to start your first command each round.',
|
||||
onTurnStart(s, src) {
|
||||
if (s.active !== src.controller || hardwareUsesLeft(s, src.id) <= 0) return;
|
||||
const deck = s.players[src.controller].deck;
|
||||
|
|
@ -280,7 +280,7 @@ export const HARDWARE: Record<string, Script> = {
|
|||
|
||||
// Reading: swap Hardware on this Avatar, paying the difference in printed RAM (no refund).
|
||||
'Hot-Swap Bay': {
|
||||
text: 'Once per turn, return one Hardware to your hand and install another Hardware from your hand, paying the difference in cost.',
|
||||
text: 'Once per round, return one Hardware to your hand and install another Hardware from your hand, paying the difference in cost.',
|
||||
ability: {
|
||||
hardwareOncePerTurn: true,
|
||||
uses(s, src) {
|
||||
|
|
@ -309,7 +309,7 @@ export const HARDWARE: Record<string, Script> = {
|
|||
// Ruling: Servers perform Executions, so "this Avatar uses an Execution" means one performed by
|
||||
// the Server the wearer stands on. "Disable this Hardware" lasts until your next turn.
|
||||
'Quantum Coprocessor': {
|
||||
text: "Once per turn when this Avatar uses an Execution, you may copy that Execution's effect with a different legal target, then disable this Hardware.",
|
||||
text: "Once per round when this Avatar uses an Execution, you may copy that Execution's effect with a different legal target, then disable this Hardware.",
|
||||
copiesExecutions: true,
|
||||
resume: {
|
||||
offer(s, data: { item: StackItem }) {
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ export const PROGRAMS: Record<string, Script> = {
|
|||
},
|
||||
|
||||
'Payload Injector': {
|
||||
text: 'The first Execution you play targeting this Server each turn costs 2 less RAM.',
|
||||
text: 'The first Execution you play targeting this Server each round costs 2 less RAM.',
|
||||
costMod: (s, src, pay) =>
|
||||
pay.kind === 'execution' && pay.player === src.controller && pay.at === src.at &&
|
||||
usedThisTurn(s, `payload:${src.id}`) === 0 ? -2 : 0,
|
||||
|
|
@ -258,7 +258,7 @@ export const PROGRAMS: Record<string, Script> = {
|
|||
// Reading: your Avatar attacking from this Server may declare a second attack on another
|
||||
// adjacent location. Both come from this Server, even if the first one moved it.
|
||||
'Infinite Loop': {
|
||||
text: 'If the attacking Avatar is controlled by the owner of this Program, it may attack a second adjacent Server in the same turn.',
|
||||
text: 'If the attacking Avatar is controlled by the owner of this Program, it may attack a second adjacent Server in the same command.',
|
||||
extraAttacks: 1,
|
||||
},
|
||||
|
||||
|
|
@ -311,7 +311,7 @@ export const PROGRAMS: Record<string, Script> = {
|
|||
},
|
||||
|
||||
'Null Pointer': {
|
||||
text: "Once per turn, when an enemy Execution would resolve at this Server, it's effect does not occur.",
|
||||
text: "Once per round, when an enemy Execution would resolve at this Server, it's effect does not occur.",
|
||||
negates(s, src, item) {
|
||||
if (item.player === src.controller || item.target !== src.at || usedThisTurn(s, `null:${src.id}`) > 0) return false;
|
||||
markUsed(s, `null:${src.id}`);
|
||||
|
|
@ -361,7 +361,7 @@ export const PROGRAMS: Record<string, Script> = {
|
|||
|
||||
// Reading: the copy lasts until your next turn, while this Program is disabled.
|
||||
'Undefined Behavior': {
|
||||
text: 'Once per turn, copy the localized effect of another Program on another Server. Then disable this Program until your next turn.',
|
||||
text: 'Once per round, copy the localized effect of another Program on another Server. Then disable this Program until your next command.',
|
||||
ability: {
|
||||
uses(s, src) {
|
||||
if (src.kind !== 'program' || src.virtual !== undefined) return [];
|
||||
|
|
@ -398,7 +398,7 @@ export const PROGRAMS: Record<string, Script> = {
|
|||
|
||||
// The once-per-turn Hardware abilities are Hot-Swap Bay's and Quantum Coprocessor's.
|
||||
Desynchronization: {
|
||||
text: 'Enemy Avatars attacking this Server cannot use their Hardware\'s "once per turn" abilities during that combat.',
|
||||
text: 'Enemy Avatars attacking this Server cannot use their Hardware\'s "once per round" abilities during that combat.',
|
||||
blocksHardwareAbilities: true,
|
||||
},
|
||||
|
||||
|
|
@ -480,11 +480,11 @@ export const PROGRAMS: Record<string, Script> = {
|
|||
// Destroyed means destroyed by an effect (Overflow Error). A captured location's Programs aren't
|
||||
// destroyed; they're discarded (see Version Control).
|
||||
Hotfix: {
|
||||
text: 'The first Program on this Server that would be destroyed each turn is instead disabled until your next turn.',
|
||||
text: 'The first Program on this Server that would be destroyed each round is instead disabled until your next command.',
|
||||
},
|
||||
|
||||
'Error Correction': {
|
||||
text: 'At the beginning of your turn, remove one negative counter or status from each Avatar you control at this Server.',
|
||||
text: 'At the beginning of your first command each round, remove one negative counter or status from each Avatar you control at this Server.',
|
||||
onTurnStart(s, src) {
|
||||
if (s.active !== src.controller) return;
|
||||
const tasks: Task[] = refsInPlay(s, src.controller)
|
||||
|
|
@ -518,7 +518,7 @@ export const PROGRAMS: Record<string, Script> = {
|
|||
|
||||
// Reading: it can sacrifice itself.
|
||||
'Garbage Collection': {
|
||||
text: 'Once per turn, sacrifice one Program installed on this Server to recover its printed RAM value.',
|
||||
text: 'Once per round, sacrifice one Program installed on this Server to recover its printed RAM value.',
|
||||
ability: {
|
||||
uses: (s, src) => (src.kind === 'program' ? s.locations[src.at!].programs.map((card) => ({ card })) : []),
|
||||
resolve(s, item, src) {
|
||||
|
|
@ -559,7 +559,7 @@ export const PROGRAMS: Record<string, Script> = {
|
|||
},
|
||||
|
||||
'Rollback Routine': {
|
||||
text: 'Once per turn, undo the most recent temporary stat reduction applied to an Avatar you control at this Server.',
|
||||
text: 'Once per round, undo the most recent temporary stat reduction applied to an Avatar you control at this Server.',
|
||||
ability: {
|
||||
uses(s, src) {
|
||||
if (src.kind !== 'program') return [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue