forked from cdrock/TourGuide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiotm2022parka
More file actions
35 lines (34 loc) · 1.58 KB
/
Copy pathiotm2022parka
File metadata and controls
35 lines (34 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//Jurassic parka
RegisterResourceGenerationFunction("IOTMJurassicParkaGenerateResource");
void IOTMJurassicParkaGenerateResource(ChecklistEntry [int] resource_entries)
{
item parka = lookupItem("jurassic parka");
if (!parka.have()) return;
if (!__misc_state["in run"]) return;
string url;
string parkaMode = get_property("parkaMode");
string parkaEnchant;
string [int] description;
url = invSearch("jurassic parka");
int spikos_left = clampi(5 - get_property_int("_spikolodonSpikeUses"), 0, 5);
// Title
string main_title = "Jurassic Parka";
description.listAppend("You're the dinosaur now, dawg.");
switch (get_property("parkaMode"))
{
case "kachungasaur":
parkaEnchant = "+100% HP, +50% meat, +2 Cold res."; break;
case "dilophosaur":
parkaEnchant = "+20 Sleaze and Sleaze Spell, +2 Stench res, YR free kill."; break;
case "spikolodon":
parkaEnchant = "+ML, +2 Sleaze res, NC forcing ability."; break;
case "ghostasaurus":
parkaEnchant = "+10 DR, +50 MP, +2 Spooky res."; break;
case "pterodactyl":
parkaEnchant = "-5% Combat Frequency, +50% Initiative, +2 Hot res."; break;
}
description.listAppend(HTMLGenerateSpanOfClass("Current enchantment: ", "r_bold") + parkaMode);
description.listAppend(HTMLGenerateSpanFont(parkaEnchant, "blue") + "");
description.listAppend(HTMLGenerateSpanOfClass(spikos_left, "r_bold") + " spikolodon spikes available.");
resource_entries.listAppend(ChecklistEntryMake("__item jurassic parka", "inventory.php?action=jparka", ChecklistSubentryMake(main_title, "", description)));
}