From a5728f0d8148638235686cc1868582afba5a8146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Str=C3=B6mblom?= Date: Thu, 11 Jul 2019 20:03:46 +0200 Subject: [PATCH] Revert "Merge pull request #584 from WaveHack/feature/the-nox" This reverts commit 7618d13b181ee7354ed782849f29c39a64436fee, reversing changes made to d30d3a02b6373cc7223826d896e566dfd5a5de93. --- app/data/races/nox.yml | 39 ------------------- .../Dominion/MilitaryCalculator.php | 2 - src/Helpers/RaceHelper.php | 5 --- src/Helpers/SpellHelper.php | 8 ---- 4 files changed, 54 deletions(-) delete mode 100644 app/data/races/nox.yml diff --git a/app/data/races/nox.yml b/app/data/races/nox.yml deleted file mode 100644 index 6aa08099cb..0000000000 --- a/app/data/races/nox.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Nox -alignment: evil -home_land_type: swamp -perks: - food_consumption: -20 - mana_production: 10 -units: - - name: Imp - cost: - platinum: 300 - ore: 0 - power: - offense: 3 - defense: 0 - - name: Fiend - cost: - platinum: 325 - ore: 25 - power: - offense: 0 - defense: 3 - - name: Nightshade - cost: - platinum: 925 - ore: 100 - power: - offense: 0 - defense: 2 - perks: - defense_from_land: swamp,10,4 # land type, ratio%, max - - name: Lich - cost: - platinum: 1000 - ore: 0 - power: - offense: 5 - defense: 2 - perks: - fewer_casualties: 50 diff --git a/src/Calculators/Dominion/MilitaryCalculator.php b/src/Calculators/Dominion/MilitaryCalculator.php index 46a7fec055..95e2534bf5 100644 --- a/src/Calculators/Dominion/MilitaryCalculator.php +++ b/src/Calculators/Dominion/MilitaryCalculator.php @@ -123,7 +123,6 @@ public function getOffensivePowerMultiplier(Dominion $dominion): float $spellCrusade = 5; $spellKillingRage = 10; $spellWarsong = 10; - $spellNightfall = 5; // Gryphon Nests $multiplier += min( @@ -145,7 +144,6 @@ public function getOffensivePowerMultiplier(Dominion $dominion): float 'crusade' => $spellCrusade, 'killing_rage' => $spellKillingRage, 'warsong' => $spellWarsong, - 'nightfall' => $spellNightfall, ]); // Prestige diff --git a/src/Helpers/RaceHelper.php b/src/Helpers/RaceHelper.php index dc543f149b..d5e2ef75f6 100644 --- a/src/Helpers/RaceHelper.php +++ b/src/Helpers/RaceHelper.php @@ -76,11 +76,6 @@ public function getRaceDescriptionHtml(Race $race): string

Trolls are excellent at smashing others, especially things smaller than themselves. [Urg smash puny gnome!]

TROLL; - $descriptions['Nox'] = <<The children of the night lurk in the shadows, striking terror in even the most powerful of rulers.

-

Nox can be found in the deepest darkness where even Dark Elves won't dare to trespass.

-NOX; - $key = strtolower($race->name); if (!isset($descriptions[$key])) { diff --git a/src/Helpers/SpellHelper.php b/src/Helpers/SpellHelper.php index 801c7fdbff..c6d04c0d44 100644 --- a/src/Helpers/SpellHelper.php +++ b/src/Helpers/SpellHelper.php @@ -216,14 +216,6 @@ public function getRacialSelfSpells(): Collection 'duration' => 12, 'races' => collect(['Troll']), ], - [ - 'name' => 'Nightfall', - 'description' => '+5% offensive power', - 'key' => 'nightfall', - 'mana_cost' => 5, - 'duration' => 12, - 'races' => collect(['Nox']), - ], ]); }