From 2d2e87a7ae95c9785cf7c214aaf61982869a2764 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 15 May 2024 00:08:32 -0300 Subject: [Consistency] Restrict Platinum Ore sale or mining if Fortress Town is closed --- npc/017-10/dispatcher.txt | 7 ++++--- npc/029-0/event.txt | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/npc/017-10/dispatcher.txt b/npc/017-10/dispatcher.txt index d48d418fb..07ea3ab22 100644 --- a/npc/017-10/dispatcher.txt +++ b/npc/017-10/dispatcher.txt @@ -347,6 +347,7 @@ function lootField { break; case HCD_OREMINES: .@val+=2400; + .@mk = ($FORTRESS_STATE ? 10 : 5); anyloot(Coal, .@lv, 9999, IronOre, max(1, .@lv/2), 2000, CopperOre, max(1, .@lv/2), 1000, @@ -354,9 +355,9 @@ function lootField { GoldOre, max(1, .@lv/4), 450, TinOre, max(1, .@lv/5), 350, LeadOre, max(1, .@lv/6), 300, - TitaniumOre, max(1, .@lv/8), 100, - (REBIRTH ? IridiumOre : TitaniumOre), max(1, .@lv/10), 80, - (REBIRTH ? PlatinumOre : IridiumOre), 1, 20); + TitaniumOre, max(1, .@lv/8), 10 * .@mk, + (REBIRTH ? IridiumOre : TitaniumOre), max(1, .@lv/10), 8 * .@mk, + (REBIRTH ? PlatinumOre : IridiumOre), 1, 2 * .@mk); break; case HCD_RAREMINES: .@val+=2500; diff --git a/npc/029-0/event.txt b/npc/029-0/event.txt index 6348f6a29..24c083f76 100644 --- a/npc/029-0/event.txt +++ b/npc/029-0/event.txt @@ -193,7 +193,9 @@ OnClock2201: restoreshopitem TitaniumOre, 6000, 9+(.@steam*2-2); if ($GAME_STORYLINE >= 4) { restoreshopitem IridiumOre, 16000, 6+(.@steam*2-2); - restoreshopitem PlatinumOre, 24000, 3+(.@steam*2-2); + // Platinum Ore is only restocked if Platinum Mines are liberated + if ($FORTRESS_STATE) + restoreshopitem PlatinumOre, 24000, 3+(.@steam*2-2); } restoreshopitem EarthPowder, 3+.@steam-1; restoreshopitem EverburnPowder, 15000, 2+.@steam-1; -- cgit v1.2.3-70-g09d2