ExtinctionOnline/static/js/cards.js
noyciy7037 8136e91a0f
Some checks failed
Extinction Online CI / build (false, 6.0.x, linux-x64) (push) Failing after 3s
Extinction Online CI / build (false, 6.0.x, osx-x64) (push) Failing after 0s
Extinction Online CI / build (false, 6.0.x, win-x64) (push) Failing after 1s
Extinction Online CI / build (true, 6.0.x, linux-x64) (push) Failing after 1s
Extinction Online CI / build (true, 6.0.x, osx-x64) (push) Failing after 1s
Extinction Online CI / build (true, 6.0.x, win-x64) (push) Failing after 1s
add some communication functions
2023-06-10 00:06:54 +09:00

115 lines
2.0 KiB
JavaScript

"use strict";
const cardTypes = {
unknown: {
id: "unknown",
prefix: "!",
count: -1
},
one: {
id: "one",
prefix: "A",
count: 7
},
two: {
id: "two",
prefix: "B",
count: 6
},
three: {
id: "three",
prefix: "C",
count: 5
},
four: {
id: "four",
prefix: "D",
count: 4
},
five: {
id: "five",
prefix: "E",
count: 3
},
six: {
id: "six",
prefix: "F",
count: 2
},
seven: {
id: "seven",
prefix: "G",
count: 1
},
rob: {
id: "rob",
prefix: "J",
count: 4
},
robKill: {
id: "robKill",
prefix: "K",
count: 1
},
recycle: {
id: "recycle",
prefix: "L",
count: 4
},
reincarnation: {
id: "reincarnation",
prefix: "M",
count: 1
},
seeThrough: {
id: "seeThrough",
prefix: "P",
count: 4
},
clairvoyant: {
id: "clairvoyant",
prefix: "Q",
count: 1
},
bacteria: {
id: "bacteria",
prefix: "U",
count: 3
},
extinction: {
id: "extinction",
prefix: "H",
count: 4,
onGet: "target.cards.forEach(it => {discard(target,it);});"
},
annihilation: {
id: "annihilation",
prefix: "I",
count: 1,
onGet: "players.forEach(player => {if(player.cards.length <= 5)player.cards.forEach(card => {discard(player,card);})});"
},
drop: {
id: "drop",
prefix: "N",
count: 3
},
dumping: {
id: "dumping",
prefix: "O",
count: 1
},
trade: {
id: "trade",
prefix: "R",
count: 2
},
shieldRoom: {
id: "shieldRoom",
prefix: "S",
count: 1
},
lose: {
id: "lose",
prefix: "T",
count: 1
}
}