Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyVulcan committed Aug 29, 2018
1 parent aabf09a commit 9a1b0a9
Show file tree
Hide file tree
Showing 10 changed files with 244 additions and 12 deletions.
11 changes: 11 additions & 0 deletions src/data/admirals.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
module.exports = [{
type: "captain",
id: "christopher_pike_75005",
set: ["75005"],
name: "Christopher Pike",
cost: 5,
skill: 2,
talents: 1,
text: "Add 1 [crew] to this ships Upgrade Bar.\n----------------------------------------\n<b>FLEET ACTION:</b>\n\nFlip up to 2 Specialization Cards equipped to this ship.",
unique: true,
factions: ["mirror-universe", "federation"]
}, {
type: "admiral",
id: "gint_admiral_75003",
set: ["75003"],
Expand Down
11 changes: 11 additions & 0 deletions src/data/captains.js
Original file line number Diff line number Diff line change
Expand Up @@ -2996,6 +2996,17 @@ module.exports = [{
text: "All of your Klingon Upgrades cost -1 SP.\n\nACTION: When attacking this round, during the Roll Attack Dice step, you may roll 2 less attack dice to add 1 [hit] result to your roll. If you have only Klingon cards assigned to your ship, roll 1 less attack die, instead of 2.",
unique: true,
factions: ["klingon"]
}, {
type: "captain",
id: "christopher_pike_cap_75005",
set: ["75005"],
name: "Christopher Pike",
cost: 5,
skill: 8,
talents: 1,
text: "Add 1 [crew] to this ships Upgrade Bar.\n----------------------------------------\n<b>ACTION:</b>\n\nFlip up to 2 Specialization Cards equipped to this ship.",
unique: true,
factions: ["mirror-universe", "federation"]
}, {
type: "captain",
id: "birta_75003",
Expand Down
6 changes: 6 additions & 0 deletions src/data/others.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
module.exports = [{
type: "token",
id: "rule_specialzation",
set: ["75005"],
name: "Specialization Cards (SCS)",
text: "Specialization Cards(SCs) are two-sided cards featuring the [specialization] symbol. This card contains additional rules that pertain to SCs.\n1. During Setup choose which side each of your SCs will start on.\n2. If a SC is flipped while it is disabled, it remains disabled.\n3. If a SC is flipped while it has [time] Tokens, the [time] Tokens remain on it.\n4 If a SC that has an [talent] Upgrade equipped to it is flipped the [talent] remains equipped to it.\n5 Players only earn Fleet Points for the SP cost that was paid during Fleet Construction.\n6. When flipping an SC that SC remains equipped to the ship, even if it exceeds taht ship's restrictions.\n7. You may not flip a SC to its Captain or Admiral side if it would cause you to have more then one Captain on a ship or more then one Admiral in your Fleet."
}, {
type: "token",
id: "rule_BMGT",
set: ["75003"],
Expand Down
14 changes: 10 additions & 4 deletions src/data/ship_classes.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,22 @@ module.exports = [
secondArc: "45",
maneuvers: {
1: {

straight: "green",
bank: "green"
},
2: {

straight: "green",
bank: "green",
turn: "white"
},
3: {

straight: "white",
bank: "white",
turn: "red",
about: "red"
},
4: {

straight: "white"
},
min: 1,
max: 4
Expand Down
6 changes: 3 additions & 3 deletions src/data/ships.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ module.exports = [{
type: "ship",
id: "kelvin_constitution_class_75005",
set: ["75005"],
name: "Federation/MU Starship",
name: "Federation Starship",
class: "Constitution Class (Kelvin)",
actions: ["evade", "target-lock", "scan", "battlestations"],
upgrades: ["tech", "weapon", "weapon", "crew", "crew"],
Expand Down Expand Up @@ -163,15 +163,15 @@ module.exports = [{
type: "ship",
id: "warbird_cladd_75005",
set: ["75005"],
name: "MU/Klingon Starship",
name: "Klingon Starship",
class: "Warbird Class",
actions: ["target-lock", "battlestations", "cloak", "sensor-echo"],
upgrades: ["tech", "weapon", "crew"],
attack: 4,
agility: 1,
hull: 4,
shields: 2,
cost: 16,
cost: 17,
text: "",
unique: false,
factions: ["mirror-universe", "klingon"],
Expand Down
97 changes: 95 additions & 2 deletions src/data/upgrades.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,68 @@ module.exports = [{
unique: true,
specialization: true,
factions: ["mirror-universe","federation"]
}, {
type: "crew",
id: "leonard_mccoy_75005",
set: ["75005"],
name: "Leonard Mccoy",
cost: 3,
text: "<b>WHEN A CAPTAIN EQUIPPED TO THIS SHIP WOULD BE DISABLED</b>\nPlace 3 [time] Tokens on this card instead.\n----------------------------------------\n<b>WHEN A CAPTAIN EQUIPPED TO THIS SHIP WOULD BE DISCARDED</b>\nPlace 2 [time] Tokens on this card and the Captain that would be discarded instead.",
unique: true,
specialization: true,
factions: ["mirror-universe","federation"]
}, {
type: "crew",
id: "leonard_mccoy__addCrew_75005",
set: ["75005"],
name: "Leonard Mccoy",
cost: 3,
text: "<b>SETUP:</b>\nPlace 1 [crew] Upgrade with a printed cost of 4 SP or less face down beneath this card.\n----------------------------------------\n<b>ACTIVATION PHASE:</b>\nFlip the [crew] Upgrade beneath this card face up and equip it to this shp even if it exceeds this ship's restrections. Place 3 [time] Tokens on that [crew] Upgrade.",
unique: true,
specialization: true,
factions: ["mirror-universe","federation"]
}, {
type: "crew",
id: "pavel_chekov_aux_75005",
set: ["75005"],
name: "Pavel Chekov",
cost: 2,
text: "<b>ACTIVATION PHASE:</b> Place 3 [time] Tokens on this card.\n\nRemove 1 [aux] Token beside this ship",
unique: true,
specialization: true,
factions: ["mirror-universe","federation"]
}, {
type: "crew",
id: "pavel_chekov_75005",
set: ["75005"],
name: "Pavel Chekov",
cost: 2,
text: "<b>COMBAT PHASE:</b> Place 3 [time] Tokens on this card and target an opposing ship.\n\nRemove 1 [scan] Token beside the target ship.",
unique: true,
specialization: true,
range: "1 - 2",
factions: ["mirror-universe","federation"]
}, {
type: "crew",
id: "nyota_uhura_comm_75005",
set: ["75005"],
name: "Nyota Uhura",
cost: 3,
text: "<b>WHEN THIS CARD IS FLIPPED FACE UP OR AFTER THIS SHIP SUFFERS CRITICAL DAMAGE:</b>\n\nDiscard alll face up 'Communications Failurs' damage cards beside this ships Ship Card.",
unique: true,
specialization: true,
factions: ["mirror-universe","federation"]
}, {
type: "crew",
id: "nyota_uhura_75005",
set: ["75005"],
name: "Nyota Uhura",
cost: 3,
text: "<b>ACTIVATION PHASE:</b> Place 3 [time] Tokens on this card and target this ship or a friendly ship.\nnIncrease the Range of all Upgrades equipped to the target ship by 1 this game round (Max Range 3).",
unique: true,
specialization: true,
range: "1 - 2",
factions: ["mirror-universe","federation"]
}, {
type: "talent",
id: "overwhelm_75005",
Expand All @@ -151,6 +213,25 @@ module.exports = [{
shipKlingon: true,
captainKlingon: true,
factions: ["klingon"]
}, {
type: "tech",
id: "portable_transwarp_beaming_device_75005",
set: ["75005"],
name: "Portable Transwarp Beaming Device",
cost: 2,
text: "<b>WHEN A [crew] UPGRADE EQUIPPED TO THIS SHIP WOULD BE DISCARDED:</b> Discard this card and target a friendly ship.\n\nInstead place 1 [time] Token on the [crew] Upgrade that would be discarded and equip it to the target ship, even if it exceeds tath ship's restrictions.",
unique: true,
range: "1 - 3",
factions: ["mirror-universe"]
}, {
type: "tech",
id: "intergrated_future_technology_75005",
set: ["75005"],
name: "Intergrated Future Technology",
cost: 3,
text: "You do not pay Faction Penalty when equipping Romulan or Borg [tech] and/or [weapon] Upgrades to this ship.\n<b>SETUP:</b>Place 1 [tech] Upgrade with a printed cost of 4 SP or less face down beneath this card.\n\n<b>PLANNING PHASE:</b> Discard this card.\nFlip the [tech] Upgrade beneath this card face up and equip it to this ship even if it exceeds this ships restrections.",
OnePerShip: true,
factions: ["mirror-universe"]
}, {
type: "tech",
id: "klingon_cloaking_device_75005",
Expand Down Expand Up @@ -206,19 +287,31 @@ module.exports = [{
set: ["75005"],
name: "Advanced Long Range Torpedo",
cost: 3,
text: "The Attack Value of this [weapon] is this ship’s Primary Weapon Value +1.\n-----------------------------------\n<b>ATTACK:</b> Spend this ship’s [target-lock] token, place 2 [time] Tokens on this card, and target an opposing ship.\n\nIf the attack hits, every other ship within Range 1 of the opposing ship suffers 1 [hit].\n(<i>Constitution Class (Kelvin) Only</i>)",
text: "The Attack Value of this [weapon] is this ship’s Primary Weapon Value +1.\n-----------------------------------\n<b>ATTACK:</b> Spend this ship’s [target-lock] Token, place 2 [time] Tokens on this card, and target an opposing ship.\n\nIf the attack hits, every other ship within Range 1 of the opposing ship suffers 1 [hit].\n(<i>Constitution Class (Kelvin) Only</i>)",
attack: 0,
unique: true,
range: "2 - 3",
shipLimit: true,
factions: ["mirror-universe","federation"]
}, {
type: "weapon",
id: "photon_torpedoes_75005",
set: ["75005"],
name: "Photon Torpedoes",
cost: 3,
text: "The Attack Value of this [weapon] is this ship’s Primary Weapon Value +1.\n-----------------------------------\n<b>ATTACK:</b> Spend this ship’s [target-lock] Token, place 3 [time] Tokens on this card, and target an opposing ship.\n\nIf the defending ship has no Active Shields and is not Cloaked, convert all [battlestations] into [crit].",
attack: 0,
RearArc: true,
range: "1 - 3",
shipLimit: true,
factions: ["mirror-universe","klingon"]
},{
type: "weapon",
id: "disruptor_volley_75005",
set: ["75005"],
name: "Disruptor Volley",
cost: 3,
text: "<b>ATTACK:Disable this card and Target an opposing ship.\n\nThis attack deals no damage. f this attack his place an [aux] Token beside the defending ship. If the defending ship is an Attack Squadron, discard 1 Attack Squadron Token (AST) for each uncancelled [hit] or [crit]</b>\n(<i>Warbird Class Only</i>)",
text: "<b>ATTACK</b>:Disable this card and Target an opposing ship.\n\nThis attack deals no damage. f this attack his place an [aux] Token beside the defending ship. If the defending ship is an Attack Squadron, discard 1 Attack Squadron Token (AST) for each uncancelled [hit] or [crit]</b>\n(<i>Warbird Class Only</i>)",
shipLimit: true,
attack: 5,
range: "1 - 3",
Expand Down
105 changes: 105 additions & 0 deletions src/js/common/utopia-card-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -8455,6 +8455,22 @@ module.factory( "cardRules", [ "$filter", "$factions", function($filter, $factio
upgradeSlots: [ { type: ["tech", "weapon"] } ]
},
//Kelvin Timeline
"admiral:christopher_pike_75005":{
factionPenalty: function(upgrade, ship, fleet) {
return ship && $factions.hasFaction( ship, "bajoran", ship, fleet ) ? 0 : 1 && $factions.hasFaction( ship, "vulcan", ship, fleet ) ? 0 : 1;
},
upgradeSlots:[
{
type: ["crew"]
}
]
},
"captain:christopher_pike_cap_75005":{
factionPenalty: function(upgrade, ship, fleet) {
return ship && $factions.hasFaction( ship, "bajoran", ship, fleet ) ? 0 : 1 && $factions.hasFaction( ship, "vulcan", ship, fleet ) ? 0 : 1;
},
upgradeSlots:[ { type: ["crew"] } ]
},
"talent:overwhelm_75005":{
canEquipFaction: function(upgrade,ship,fleet) {
return ship.captain && $factions.hasFaction(ship.captain,"klingon", ship, fleet);
Expand Down Expand Up @@ -8503,6 +8519,53 @@ module.factory( "cardRules", [ "$filter", "$factions", function($filter, $factio
return ship && $factions.hasFaction( ship, "bajoran", ship, fleet ) ? 0 : 1 && $factions.hasFaction( ship, "vulcan", ship, fleet ) ? 0 : 1;
}
},
"crew:leonard_mccoy_75005":{
factionPenalty: function(upgrade, ship, fleet) {
return ship && $factions.hasFaction( ship, "bajoran", ship, fleet ) ? 0 : 1 && $factions.hasFaction( ship, "vulcan", ship, fleet ) ? 0 : 1;
}
},
"crew:leonard_mccoy__addCrew_75005":{
factionPenalty: function(upgrade, ship, fleet) {
return ship && $factions.hasFaction( ship, "bajoran", ship, fleet ) ? 0 : 1 && $factions.hasFaction( ship, "vulcan", ship, fleet ) ? 0 : 1;
},
upgradeSlots: [
{
type: ["crew"],
rules: "Crew, 4SP or less",
intercept: {
ship: {
free: function() { return true; },
canEquip: function(upgrade, ship, fleet, canEquip) {
if( valueOf(upgrade,"cost",ship,fleet) > 4 )
return false;
return canEquip;
}
}

}
}
]
},
"crew:pavel_chekov_aux_75005":{
factionPenalty: function(upgrade, ship, fleet) {
return ship && $factions.hasFaction( ship, "bajoran", ship, fleet ) ? 0 : 1 && $factions.hasFaction( ship, "vulcan", ship, fleet ) ? 0 : 1;
}
},
"crew:pavel_chekov_75005":{
factionPenalty: function(upgrade, ship, fleet) {
return ship && $factions.hasFaction( ship, "bajoran", ship, fleet ) ? 0 : 1 && $factions.hasFaction( ship, "vulcan", ship, fleet ) ? 0 : 1;
}
},
"crew:nyota_uhura_comm_75005":{
factionPenalty: function(upgrade, ship, fleet) {
return ship && $factions.hasFaction( ship, "bajoran", ship, fleet ) ? 0 : 1 && $factions.hasFaction( ship, "vulcan", ship, fleet ) ? 0 : 1;
}
},
"crew:nyota_uhura_75005":{
factionPenalty: function(upgrade, ship, fleet) {
return ship && $factions.hasFaction( ship, "bajoran", ship, fleet ) ? 0 : 1 && $factions.hasFaction( ship, "vulcan", ship, fleet ) ? 0 : 1;
}
},
"crew:koth_75005":{
canEquip: function(upgrade,ship,fleet) {
return $factions.hasFaction(ship,"klingon", ship, fleet);
Expand Down Expand Up @@ -8535,6 +8598,19 @@ module.factory( "cardRules", [ "$filter", "$factions", function($filter, $factio
}
}
},
"weapon:photon_torpedoes_75005":{
attack: 0,
intercept: {
self: {
// Attack is same as ship primary + 1
attack: function(upgrade,ship,fleet,attack) {
if( ship )
return valueOf(ship,"attack",ship,fleet) + 1;
return attack;
}
}
}
},
"weapon:full_spread_phasers_75005":{
canEquip: function(upgrade,ship,fleet) {
return onePerShip("Full Spread Phasers"), ship.class == "Constitution Class (Kelvin)";
Expand All @@ -8545,6 +8621,35 @@ module.factory( "cardRules", [ "$filter", "$factions", function($filter, $factio
return ship.class == "Warbird Class"
},
},
"tech:intergrated_future_technology_75005":{
upgradeSlots: [
{
type: ["tech"],
rules: "Tech, 4SP or less",
intercept: {
ship: {
free: function() { return true; },
canEquip: function(upgrade, ship, fleet, canEquip) {
if( valueOf(upgrade,"cost",ship,fleet) > 4 )
return false;
return canEquip;
}
}

}
}
],
canEquip: onePerShip("Intergrated Future Technology"),
intercept: {
ship: {
factionPenalty: function(card,ship,fleet,factionPenalty) {
if( ( card.type == "tech" && $factions.hasFaction(card,"romulan", ship, fleet) ) || ( card.type == "weapon" && $factions.hasFaction(card,"romulan", ship, fleet) ) || ( card.type == "tech" && $factions.hasFaction(card,"borg", ship, fleet) ) || ( card.type == "weapon" && $factions.hasFaction(card,"borg", ship, fleet) ) )
return 0;
return factionPenalty;
}
}
}
},

//Faction Penalty For Subfactions
//Federation
Expand Down
2 changes: 1 addition & 1 deletion staw-utopia/data/data.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion staw-utopia/js/utopia.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion staw-utopia/js/utopia.min.js.map

Large diffs are not rendered by default.

0 comments on commit 9a1b0a9

Please sign in to comment.