Skip to content

Commit

Permalink
formatting & short order cook
Browse files Browse the repository at this point in the history
  • Loading branch information
docrostov committed Aug 7, 2023
1 parent 11f2e0e commit 776988c
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//Shortest-Order Cook
RegisterResourceGenerationFunction("IOTMShortCookGenerateResource");
void IOTMShortCookGenerateResource(ChecklistEntry [int] resource_entries)
{
if (!__misc_state["in run"]) return;
int shartCookCharge = get_property_int("_shortOrderCookCharge");
string [int] description;
string url = "familiar.php";
string subtitle = "also, use your cook to feed XP to another familiar";
if (shartCookCharge < 11)
{
description.listAppend("Use the short cook to get a +10 famwt potion.");
resource_entries.listAppend(ChecklistEntryMake("__familiar shorter-order cook", url, ChecklistSubentryMake(shartCookCharge + "/11 Shorter-Order Cook charge", "", description), 8));
}
}
15 changes: 12 additions & 3 deletions Source/relay/TourGuide/Items of the Month/2023/August Scepter.ash
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,18 @@ void IOTMAugustScepterGenerateResource(ChecklistEntry [int] resource_entries)

allSkills.listAppend(listMake(HTMLGenerateSpanOfClass("Day", "r_bold"), HTMLGenerateSpanOfClass("Gives you...", "r_bold")));


// Have to do this to ensure the tooltip orders appropriately
string [int] allAugustSkills;

foreach augSkill, augSkillValue in __augSkillsToValue {
allAugustSkills[grabNumber(augSkill)] = augSkill;
}

// Now that it is correctly iterating in order, color appropriately and build the allSkill table.
foreach augSkillNumber, augSkill in allAugustSkills {
string lineColor = "black";
int augSkillNumber = grabNumber(augSkill);
string augSkillValue = __augSkillsToValue[augSkill];

// Color the "free" skill in blue if they're in aftercore
if (!__misc_state["in run"] && augSkillNumber == todaySkillInt) lineColor = "blue";
Expand All @@ -272,9 +281,9 @@ void IOTMAugustScepterGenerateResource(ChecklistEntry [int] resource_entries)

// give a tip of the cap to the ol tools here
buffer tooltip;
tooltip.append(HTMLGenerateTagWrap("div", "No, TourGuide, show me ALL the skills", mapMake("class", "r_bold r_centre", "style", "padding-bottom:0.25em;")));
tooltip.append(HTMLGenerateTagWrap("div", "Well, you asked for it!", mapMake("class", "r_bold r_centre", "style", "padding-bottom:0.25em;")));
tooltip.append(HTMLGenerateSimpleTableLines(allSkills));
string tooltipEnumerated = HTMLGenerateSpanOfClass(HTMLGenerateSpanOfClass(tooltip, "r_tooltip_inner_class r_tooltip_inner_class_margin") + "ALL the dang skills", "r_tooltip_outer_class");
string tooltipEnumerated = HTMLGenerateSpanOfClass(HTMLGenerateSpanOfClass(tooltip, "r_tooltip_inner_class r_tooltip_inner_class_margin") + "No, TourGuide, show me ALL the skills.", "r_tooltip_outer_class");
description.listAppend(tooltipEnumerated);

resource_entries.listAppend(ChecklistEntryMake("__item August Scepter", "skillz.php", ChecklistSubentryMake(title, subtitle, description), -1).ChecklistEntrySetIDTag("August Scepter resource"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ import "relay/TourGuide/Items of the Month/2021/Miniature Crystal Ball.ash";
import "relay/TourGuide/Items of the Month/2021/Emotion Chip.ash";
import "relay/TourGuide/Items of the Month/2021/Potted Power Plant.ash";
import "relay/TourGuide/Items of the Month/2021/Backup Camera.ash";
// Missing: Shortest-Order Cook
import "relay/TourGuide/Items of the Month/2021/Short Order Cook.ash";
import "relay/TourGuide/Items of the Month/2021/Familiar Scrapbook.ash";
import "relay/TourGuide/Items of the Month/2021/Underground Fireworks Shop.ash";
// Missing: Candles
Expand Down
2 changes: 1 addition & 1 deletion Source/relay/relay_TourGuide.ash
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//This script and its support scripts are in the public domain.

since r27519; // Eagle & Scepter supported
since r27521; // Eagle & Scepter supported
import "relay/TourGuide/Main.ash"

void main()
Expand Down

0 comments on commit 776988c

Please sign in to comment.