Skip to content

Commit

Permalink
Misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcoppa committed Sep 29, 2024
1 parent b75a0fd commit 1b8cea3
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//Sept-Ember Censer
// Sept-Ember Censer
RegisterResourceGenerationFunction("IOTMSeptemberCenserGenerateResource");
void IOTMSeptemberCenserGenerateResource(ChecklistEntry [int] resource_entries)
{
if ($item[Sept-Ember Censer].available_amount() == 0) return;

int septEmbers = get_property_int("availableSeptEmbers");
string [int] description;
float cold_resistance = numeric_modifier("cold resistance");
int mainstatGain = (7 * (cold_resistance) ** 1.7) * (1.0 + numeric_modifier(my_primestat().to_string() + " Experience Percent") / 100.0);
float coldResistance = numeric_modifier("cold resistance");
int mainstatGain = (7 * (coldResistance) ** 1.7) * (1.0 + numeric_modifier(my_primestat().to_string() + " Experience Percent") / 100.0);
string url = "shop.php?whichshop=september";
string title = "Sept-Ember Censer";
int bembershootCount = $item[bembershoot].available_amount();
Expand All @@ -19,25 +19,25 @@ void IOTMSeptemberCenserGenerateResource(ChecklistEntry [int] resource_entries)

if (septEmbers > 0)
{
description.listAppend("Have " + (HTMLGenerateSpanFont(septEmbers, "red")) + " Sept-Embers to make stuff with!");
description.listAppend(`Have {HTMLGenerateSpanFont(septEmbers, "red")} Sept-Embers to make stuff with!`);
}

description.listAppend("1 embers: +5 cold res accessory. (You have " + (HTMLGenerateSpanFont(bembershootCount, "red")) + " of this)");
description.listAppend("2 embers: mmm-brr! mouthwash for " + (HTMLGenerateSpanFont(mainstatGain, "blue")) + " mainstat. (You have " + (HTMLGenerateSpanFont(mouthwashCount, "red")) + " of this)");
description.listAppend(`1 embers: +5 cold res accessory (You have {HTMLGenerateSpanFont(bembershootCount, "red")})`);
description.listAppend(`2 embers: mmm-brr! mouthwash for {HTMLGenerateSpanFont(mainstatGain, "blue")} mainstat. (You have {HTMLGenerateSpanFont(mouthwashCount, "red")})`);

if (structureUsed) {
description.listAppend((HTMLGenerateSpanFont("Already used structural ember today", "red")));
} else {
description.listAppend("4 embers: +5/5 bridge parts (1/day)");
}
if (structureUsed == false) {
description.listAppend("4 embers: +5/5 bridge parts (1/day).");
}

if (hulkFought) {
description.listAppend((HTMLGenerateSpanFont("Already fought embering hulk today", "red")));
}
if (hulkFought == false) {
} else {
description.listAppend("6 embers: embering hulk (1/day)");
}
description.listAppend("(You have " + (HTMLGenerateSpanFont(hunkCount, "red")) + " hunks)");

description.listAppend(`(You have {HTMLGenerateSpanFont(hunkCount, "red")} hunks)`);

resource_entries.listAppend(ChecklistEntryMake("__item sept-ember censer", url, ChecklistSubentryMake(title, "", description), 8));
}

0 comments on commit 1b8cea3

Please sign in to comment.