From fa6fefc75a9f683ba983f4ead122e294e1510634 Mon Sep 17 00:00:00 2001 From: colons Date: Wed, 21 Jun 2017 19:28:00 +0100 Subject: [PATCH] Remove endurance. Closes #25, and probably simplifies #8. --- battle.js | 5 ++--- game.js | 3 --- index.html | 4 ---- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/battle.js b/battle.js index 6da07df4..9ee19713 100644 --- a/battle.js +++ b/battle.js @@ -58,11 +58,10 @@ function BattleIdol(idol, control) { } self.attack = modStat(idol.attack + idol.attackBonus, 100); - self.defense = modStat(idol.defense + idol.defenseBonus, 50); - self.endurance = modStat(idol.endurance + idol.enduranceBonus, 50); + self.defense = modStat(idol.defense + idol.defenseBonus, 100); self.speed = modStat(idol.speed + idol.speedBonus, 20); - self.maxHp = self.endurance; + self.maxHp = 50; self.hp = self.maxHp; self.abilities = idol.abilities; diff --git a/game.js b/game.js index 194bbefe..7a684c31 100644 --- a/game.js +++ b/game.js @@ -1,7 +1,6 @@ var VOWELS = 'aeiou'; var N = 'n'; var STATS = [ - 'endurance', 'attack', 'speed', 'defense' @@ -59,7 +58,6 @@ var endString = 'end'; var idolSorters = { date: function(a, b) { return b.recruitedAt - a.recruitedAt; }, statSpeed: function(a, b) { return (b.speed + b.speedBonus) - (a.speed + a.speedBonus); }, - statEndurance: function(a, b) { return (b.endurance + b.enduranceBonus) - (a.endurance + a.enduranceBonus); }, statAttack: function(a, b) { return (b.attack + b.attackBonus) - (a.attack + a.attackBonus); }, statDefense: function(a, b) { return (b.defense + b.defenseBonus) - (a.defense + a.defenseBonus); }, unitMembership: function(a, b) { return (Number(b.isInUnit()) - Number(a.isInUnit())); }, @@ -73,7 +71,6 @@ var idolSorters = { var idolSortNames = { date: 'Date recruited', statSpeed: 'Speed', - statEndurance: 'Endurance', statAttack: 'Attack', statDefense: 'Defense', allStats: 'Total of all stats', diff --git a/index.html b/index.html index d6386f66..f9f1c080 100644 --- a/index.html +++ b/index.html @@ -126,8 +126,6 @@

{{name}}

{{defense}} +{{defenseBonus}}
Speed
{{speed}} +{{speedBonus}}
-
Endurance
-
{{endurance}} +{{enduranceBonus}}

{{rarity}}

@@ -268,8 +266,6 @@

Are you sure you want {{idol.name}} to “train with” {{food.name}}?

{{idol.defense}} + {{food.defense}}{{#if negativeStats.defense}}/2{{/if}} = {{summedStats.defense}}
Speed
{{idol.speed}} + {{food.speed}}{{#if negativeStats.speed}}/2{{/if}} = {{summedStats.speed}}
-
Endurance
-
{{idol.endurance}} + {{food.endurance}}{{#if negativeStats.endurance}}/2{{/if}} = {{summedStats.endurance}}

Yes, “train” No, it's okay