1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-11-23 19:36:53 +00:00

add some data (abilties, cards, decks)

This commit is contained in:
exane 2015-06-30 18:24:12 +02:00
parent fabaa3c062
commit ca3267aedb
3 changed files with 127 additions and 69 deletions

View File

@ -2,7 +2,7 @@ module.exports = {
"agile": { "agile": {
name: "agile", name: "agile",
description: "Can be placed in either the Close Combat or Ranged Combat row. Cannot be moved once placed.", description: "Agile: Can be placed in either the Close Combat or Ranged Combat row. Cannot be moved once placed.",
cancelPlacement: true, cancelPlacement: true,
onBeforePlace: function(card){ onBeforePlace: function(card){
var self = this; var self = this;
@ -19,7 +19,7 @@ module.exports = {
}, },
"medic": { "medic": {
name: "medic", name: "medic",
description: "Choose one card from your discard pile (excluding heroes / special cards) to play instantly.", description: "Medic: Choose one card from your discard pile (excluding heroes / special cards) to play instantly.",
waitResponse: true, waitResponse: true,
onAfterPlace: function(card){ onAfterPlace: function(card){
var discard = this.getDiscard(); var discard = this.getDiscard();
@ -36,7 +36,7 @@ module.exports = {
}, },
"morale_boost": { "morale_boost": {
name: "morale_boost", name: "morale_boost",
description: "Adds +1 strength to all units in the row, excluding itself.", description: "Morale Boost: Adds +1 strength to all units in the row, excluding itself.",
onEachCardPlace: function(card){ onEachCardPlace: function(card){
var field = this.field[card.getType()]; var field = this.field[card.getType()];
var id = card.getID(); var id = card.getID();
@ -61,7 +61,7 @@ module.exports = {
}, },
"muster": { "muster": {
name: "muster", name: "muster",
description: "Find any cards with the same name in your deck and play them instantly.", description: "Muster: Find any cards with the same name in your deck and play them instantly.",
onAfterPlace: function(card){ onAfterPlace: function(card){
var musterType = card.getMusterType(); var musterType = card.getMusterType();
var self = this; var self = this;
@ -87,7 +87,7 @@ module.exports = {
}, },
"tight_bond": { "tight_bond": {
name: "tight_bond", name: "tight_bond",
description: "Place next to a card with the name same to double the strength of both cards.", description: "Tight Bond: Place next to a card with the name same to double the strength of both cards.",
onAfterPlace: function(card){ onAfterPlace: function(card){
var field = this.field[card.getType()]; var field = this.field[card.getType()];
var cards = field.get(); var cards = field.get();
@ -103,10 +103,11 @@ module.exports = {
}, },
"spy": { "spy": {
name: "spy", name: "spy",
description: "Place on your opponents battlefield (counts towards their total strength) then draw two new cards from your deck.", description: "Spy: Place on your opponents battlefield (counts towards their total strength) then draw two new cards from your deck.",
changeSide: true, changeSide: true,
onAfterPlace: function(){ onAfterPlace: function(){
this.draw(2); this.draw(2);
this.sendNotification(this.getName() + " activated Spy! Draws +2 cards.")
} }
}, },
"weather_fog": { "weather_fog": {
@ -245,7 +246,7 @@ module.exports = {
}, },
"commanders_horn": { "commanders_horn": {
name: "commanders_horn", name: "commanders_horn",
description: "Commander's Horn: Doubles the strength of all unit cards in a row. Limited to 1 per row.", description: "Commander's Horn: Doubles the strength of all unit cards in a row. Except this card.",
commandersHorn: true commandersHorn: true
}, },
"commanders_horn_card": { "commanders_horn_card": {
@ -341,6 +342,22 @@ module.exports = {
this.setHorn("commanders_horn", 0); this.setHorn("commanders_horn", 0);
} }
}, },
"emreis_leader4": {
name: "Emhyr vas Emreis the Relentless",
description: "Draw a card from your opponent's discard pile.",
onActivate: function(card){
var discard = this.foe.getDiscard();
discard = this.filter(discard, {
"ability": "hero",
"type": [card.constructor.TYPE.SPECIAL, card.constructor.TYPE.WEATHER]
})
this.send("played:emreis_leader4", {
cards: JSON.stringify(discard)
}, true);
}
},
"hero": { "hero": {
name: "hero", name: "hero",
description: "Hero: Not affected by special cards, weather cards or abilities." description: "Hero: Not affected by special cards, weather cards or abilities."

View File

@ -10,6 +10,14 @@
module.exports = { module.exports = {
"none": {
name: "none",
power: 0,
ability: null,
img: "foot_soldier1",
faction: "northern",
type: 0
},
"redanian_foot_soldier": { "redanian_foot_soldier": {
name: "Redanian Foot Soldier", name: "Redanian Foot Soldier",
power: 1, power: 1,
@ -868,6 +876,14 @@ module.exports = {
//nilfgaardian //nilfgaardian
"emreis_relentless": {
name: "Emhyr vas Emreis the Relentless",
power: -1,
ability: "emreis_leader4",
img: "emhyr_relentless",
faction: "nilfgaardian",
type: 3
},
"tibor_eggebracht": { "tibor_eggebracht": {
name: "test", name: "test",
power: 10, power: 10,
@ -925,12 +941,12 @@ module.exports = {
type: 1 type: 1
}, },
"sweers": { "sweers": {
name: "test", name: "Sweers",
power: 0, power: 2,
ability: null, ability: null,
img: null, img: "sweers",
faction: "nilfgaardian", faction: "nilfgaardian",
type: 0 type: 2
}, },
"nausicaa_cavalry_rider": { "nausicaa_cavalry_rider": {
name: "Nausicaa Cavalry Rider", name: "Nausicaa Cavalry Rider",

View File

@ -6,16 +6,14 @@ module.exports = {
"redanian_foot_soldier", "redanian_foot_soldier",
"redanian_foot_soldier", "redanian_foot_soldier",
"poor_fucking_infantry", "poor_fucking_infantry",
"redanian_foot_soldier",
"poor_fucking_infantry", "poor_fucking_infantry",
"redanian_foot_soldier",
"yarpen_zigrin", "yarpen_zigrin",
"blue_stripes_commando", "blue_stripes_commando",
"sigismund_dijkstra", "sigismund_dijkstra",
"prince_stennis", "prince_stennis",
"siegfried_of_denesle", "siegfried_of_denesle",
"ves", "ves",
"vernon_roche",
"john_natalis",
"sheldon_skaggs", "sheldon_skaggs",
"sabrina_glevissig", "sabrina_glevissig",
"crinfrid_reavers_dragon_hunter", "crinfrid_reavers_dragon_hunter",
@ -27,75 +25,80 @@ module.exports = {
"ballista", "ballista",
"trebuchet", "trebuchet",
"thaler", "thaler",
"foltest_siegemaster", "foltest_siegemaster",
"vernon_roche",
"john_natalis",
"dandelion",
"villentretenmerth",
"biting_frost", "biting_frost",
"torrential_rain",
"clear_weather",
"impenetrable_fog", "impenetrable_fog",
"clear_weather",
"clear_weather",
"commanders_horn", "commanders_horn",
"commanders_horn", "commanders_horn",
"decoy" "decoy",
"decoy",
"scorch",
"scorch"
] ]
}, },
"nilfgaardian": { //test only "nilfgaardian": { //test only
faction: "nilfgaardian", faction: "nilfgaardian",
data: [ data: [
"redanian_foot_soldier", "emreis_relentless",
"redanian_foot_soldier", "tibor_eggebracht",
"poor_fucking_infantry", "letho_of_gulet",
"redanian_foot_soldier", "morvran_voorhis",
"poor_fucking_infantry", "menno_coehoorn",
"yarpen_zigrin", "siege_technician",
"blue_stripes_commando", "etolian_auxiliary_archers",
"sigismund_dijkstra", "albrich",
"prince_stennis", "nausicaa_cavalry_rider",
"siegfried_of_denesle", "nausicaa_cavalry_rider",
"ves", "nausicaa_cavalry_rider",
"vernon_roche", "impera_brigade_guard",
"john_natalis", "impera_brigade_guard",
"sheldon_skaggs", "impera_brigade_guard",
"sabrina_glevissig", "vattier_de_rideaux",
"crinfrid_reavers_dragon_hunter", "shilard_fitz_oesterlen",
"sile_de_tansarville", "stefan_skellen",
"keira_metz", "heavy_zerrikanian_fire_scorpion",
"dethmold", "heavy_zerrikanian_fire_scorpion",
"kaedweni_siege_expert", "black_infantry_archer",
"dun_banner_medic", "black_infantry_archer",
"ballista", "young_emmisary",
"trebuchet", "young_emmisary",
"thaler", "young_emmisary",
"foltest_siegemaster", "avallach",
"dandelion",
"decoy",
"decoy",
"scorch",
"scorch",
"commanders_horn",
"commanders_horn",
"impenetrable_fog",
"biting_frost", "biting_frost",
"torrential_rain", "torrential_rain",
"clear_weather", "clear_weather"
"impenetrable_fog",
"commanders_horn",
"commanders_horn",
"decoy"
] ]
}, },
"scoiatael": { "scoiatael": {
faction: "scoiatael", faction: "scoiatael",
data: [ data: [
"francesca_the_beautiful", "francesca_the_beautiful",
"commanders_horn",
"commanders_horn",
"saesenthessis",
"iorveth",
"isengrim_faoiltiarnah",
"eithne",
"havekar_healer", "havekar_healer",
"riordain", "riordain",
"havekar_smuggler", "havekar_smuggler",
"havekar_smuggler", "havekar_smuggler",
"havekar_smuggler", "havekar_smuggler",
"havekar_smuggler",
"toruviel", "toruviel",
"decoy",
"decoy",
"biting_frost",
"torrential_rain",
"clear_weather",
"impenetrable_fog",
"elven_skirmisher", "elven_skirmisher",
"elven_skirmisher", "elven_skirmisher",
"dwarven_skirmisher", "dwarven_skirmisher",
@ -103,7 +106,6 @@ module.exports = {
"ciaran_aep_easnillien", "ciaran_aep_easnillien",
"vrihedd_brigade_recruit", "vrihedd_brigade_recruit",
"dol_blathanna_archer", "dol_blathanna_archer",
"havekar_smuggler",
"mahakaman_defender", "mahakaman_defender",
"vrihedd_brigade_veteran", "vrihedd_brigade_veteran",
"dennis_cranmer", "dennis_cranmer",
@ -113,7 +115,24 @@ module.exports = {
"yaevinn", "yaevinn",
"barclay_els", "barclay_els",
"dol_blathanna_scout", "dol_blathanna_scout",
"milva" "milva",
"saesenthessis",
"iorveth",
"isengrim_faoiltiarnah",
"eithne",
"avallach",
"scorch",
"scorch",
"commanders_horn",
"commanders_horn",
"decoy",
"decoy",
"biting_frost",
"biting_frost",
"torrential_rain",
"clear_weather"
] ]
}, },
@ -121,12 +140,25 @@ module.exports = {
faction: "monster", faction: "monster",
data: [ data: [
"eredin_king_of_the_wild_hunt", "eredin_king_of_the_wild_hunt",
"kayran", "kayran",
"leshen", "leshen",
"imlerith", "imlerith",
"draug", "draug",
"ghoul", "avallach",
"dandelion",
"decoy", "decoy",
"decoy",
"scorch",
"scorch",
"commanders_horn",
"commanders_horn",
"torrential_rain",
"clear_weather",
"impenetrable_fog",
"ghoul",
"nekker", "nekker",
"nekker", "nekker",
"wyvern", "wyvern",
@ -135,17 +167,11 @@ module.exports = {
"gargoyle", "gargoyle",
"cockatrice", "cockatrice",
"harpy", "harpy",
"biting_frost",
"torrential_rain",
"clear_weather",
"impenetrable_fog",
"endrega", "endrega",
"vampire_bruxa", "vampire_bruxa",
"vampire_fleder", "vampire_fleder",
"vampire_garkain", "vampire_garkain",
"vampire_ekimmara", "vampire_ekimmara",
"commanders_horn",
"commanders_horn",
"vampire_ekimmara", "vampire_ekimmara",
"arachas", "arachas",
"botchling", "botchling",
@ -156,7 +182,6 @@ module.exports = {
"frightener", "frightener",
"ice_giant", "ice_giant",
"grave_hag", "grave_hag",
//"vampire_katakan",
"crone_whispess", "crone_whispess",
"crone_brewess", "crone_brewess",
"crone_weavess", "crone_weavess",