summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-05-15 00:08:32 -0300
committerJesusaves <cpntb1@ymail.com>2024-05-15 00:08:32 -0300
commit2d2e87a7ae95c9785cf7c214aaf61982869a2764 (patch)
treec1fa1d5acb85867cf03fc292656d21c76deca38f
parente7b49f6476e9404709052ec22e6c51bfc99a3f51 (diff)
downloadserverdata-2d2e87a7ae95c9785cf7c214aaf61982869a2764.tar.gz
serverdata-2d2e87a7ae95c9785cf7c214aaf61982869a2764.tar.bz2
serverdata-2d2e87a7ae95c9785cf7c214aaf61982869a2764.tar.xz
serverdata-2d2e87a7ae95c9785cf7c214aaf61982869a2764.zip
[Consistency] Restrict Platinum Ore sale or mining if Fortress Town is closed
-rw-r--r--npc/017-10/dispatcher.txt7
-rw-r--r--npc/029-0/event.txt4
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;