-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #232 from loathers/august-update
august updates; kiwi + tearaway + darts and more!
- Loading branch information
Showing
30 changed files
with
269 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
Source/relay/TourGuide/Items of the Month/2024/Everfull Dart Holster.ash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
//Everfull Dart Holster via TES | ||
RegisterTaskGenerationFunction("IOTMEverfullDartsGenerateTasks"); | ||
void IOTMEverfullDartsGenerateTasks(ChecklistEntry [int] task_entries, ChecklistEntry [int] optional_task_entries, ChecklistEntry [int] future_task_entries) | ||
{ | ||
if (!__iotms_usable[$item[everfull dart holster]]) return; | ||
|
||
string [int] description; | ||
string url = "inventory.php?ftext=everfull+dart_holster"; | ||
|
||
if ($effect[everything looks red].have_effect() == 0) { | ||
int dartCooldown = 50; | ||
if (get_property("everfullDartPerks").contains_text("You are less impressed by bullseyes")) { | ||
dartCooldown -= 10; | ||
} | ||
if (get_property("everfullDartPerks").contains_text("Bullseyes do not impress you much")) { | ||
dartCooldown -= 10; | ||
} | ||
description.listAppend(HTMLGenerateSpanFont(`Shoot a bullseye! ({dartCooldown} ELR)`, "red")); | ||
if (lookupItem("everfull dart holster").equipped_amount() == 0) { | ||
description.listAppend(HTMLGenerateSpanFont("Equip the dart holster first.", "red")); | ||
} | ||
else { | ||
description.listAppend(HTMLGenerateSpanFont("Dart holster equipped", "blue")); | ||
} | ||
task_entries.listAppend(ChecklistEntryMake("__item everfull dart holster", url, ChecklistSubentryMake("Everfull Darts free kill available!", "", description), -11)); | ||
} | ||
} | ||
|
||
RegisterResourceGenerationFunction("IOTMEverfullDartsGenerateResource"); | ||
void IOTMEverfullDartsGenerateResource(ChecklistEntry [int] resource_entries) | ||
{ | ||
if (!__iotms_usable[$item[everfull dart holster]] || !__misc_state["in run"]) return; | ||
|
||
string [int] description; | ||
string url = "inventory.php?ftext=everfull+dart_holster"; | ||
|
||
int dartSkill = get_property_int("dartsThrown"); | ||
if (dartSkill < 401) { | ||
int dartsNeededForNextPerk = floor(sqrt(dartSkill) + 1) ** 2 - dartSkill; | ||
description.listAppend(`Current dart skill: {dartSkill}`); | ||
description.listAppend(`{HTMLGenerateSpanFont(dartsNeededForNextPerk, "blue")} darts needed for next Perk`); | ||
|
||
if (lookupItem("everfull dart holster").equipped_amount() == 0) { | ||
description.listAppend(HTMLGenerateSpanFont("Equip the dart holster first.", "red")); | ||
} | ||
else { | ||
description.listAppend(HTMLGenerateSpanFont("Dart holster equipped", "blue")); | ||
} | ||
resource_entries.listAppend(ChecklistEntryMake("__item everfull dart holster", url, ChecklistSubentryMake("🍑🎯 Everfull Dart Holster charging", "", description), 11)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
Source/relay/TourGuide/Items of the Month/2024/Mini Kiwi.ash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Mini-Kiwi | ||
RegisterResourceGenerationFunction("IOTMMiniKiwiGenerateResource"); | ||
void IOTMMiniKiwiGenerateResource(ChecklistEntry [int] resource_entries) | ||
{ | ||
if (!lookupFamiliar("Mini Kiwi").familiar_is_usable()) return; | ||
|
||
// This familiar sucks. It's really bad. Still, fine to have a tile, I guess. | ||
int miniKiwiCount = $item[mini kiwi].available_amount(); | ||
float kiwiWeight = effective_familiar_weight($familiar[Mini Kiwi]) + weight_adjustment(); | ||
float kiwiModifier = $item[aviator goggles].available_amount() > 0 ? 0.75 : 0.50; | ||
|
||
// Calculating the chance of a kiwi per fight; weight * your modifier | ||
int kiwiChance = to_int(min(kiwiWeight * kiwiModifier,100.0)); | ||
boolean kiwiSpiritsBought = get_property_boolean("_miniKiwiIntoxicatingSpiritsBought"); | ||
int miniKiwiBikiniCount = $item[mini kiwi bikini].available_amount(); | ||
|
||
// Tile setup stuff | ||
string [int] description; | ||
string url = "familiar.php"; // Could send to the kwiki mart, but don't care enough. | ||
string header = pluralise(miniKiwiCount, "mini kiwi available", "mini kiwis available"); | ||
|
||
description.listAppend(`At {to_int(kiwiWeight)} weight, you have a {kiwiChance}% chance of a mini kiwi each fight.`); | ||
|
||
if (!kiwiSpiritsBought) { | ||
description.listAppend('|*Consider purchasing mini kiwi intoxicating spirits, for 3 kiwis.'); | ||
} | ||
|
||
if (miniKiwiBikiniCount < 1 && get_property_int("zeppelinProtestors") < 80) { | ||
description.listAppend('|*Consider purchasing mini kiwi bikinis, for the Zeppelin sleaze test.'); | ||
} | ||
|
||
resource_entries.listAppend(ChecklistEntryMake("__familiar mini kiwi", url, ChecklistSubentryMake(header, "", description), 10)); | ||
|
||
} |
Oops, something went wrong.