Skip to content

Instantly share code, notes, and snippets.

foreach it in get_inventory() if (
it.reusable
&& it.string_modifier('Skill') != ''
&& !it.string_modifier('Skill').to_skill().have_skill()
) use(it);
@DamianDominoDavis
DamianDominoDavis / so_you_wanna_be_a_pirate.txt
Last active May 14, 2025 23:51
piraterealm unlocks and fun farming
First Trip:
Choose any crewmate, the ancient skull key curio, and the Rigged Frigate ship.
Island 1: any of Dessert, Crab, or Glass Islands, for cocoa of youth or one of two meh shop unlocks.
Island 2: Prison Island permanently unlocks a third choice of crewmate, for greater flexibility on all future visits.
Island 3: anything.
Signal Island has a meh shop unlock,
and Tiki Island has one too if you bring a Mixologist mate.
Storm Island permanently unlocks a curio which is required to visit Trash Island (and makes outrunning storms more likely).
At the end of your first sailing trip, open the shop and buy a PirateRealm party hat for +1 Fun from all PirateRealm adventures.
"So tell me," said Reg, after they had both had a couple
of spoonsful and arrived independently at the same conclusion,
that it was not a taste explosion, "what you've been up to, my
dear chap. Something to do with computers, I understand, and
also to do with music. I thought you read English when you were
here-though only, I realise, in your spare time." He looked at
Richard significantly over the rim of his soup spoon. "Now
wait," he interrupted before Richard even had a chance to
start, "don't I vaguely remember that you had some sort of
computer when you were here? When was it? 1977?"
// display big tradeable items, and big piles of tradeable items
int hmny(item it) {
static int[item] memory;
if (!(memory contains it))
memory[it] = it.available_amount() + it.shop_amount() + it.display_amount();
return memory[it];
}
void main(int show_this_many_treasures) {
// play Dungeon Fist
// requires: 5*X adventures, X Game Grid token, having ever played a perfect game
// yields: 30*X Gamde Grid tickets
void main(int games) {
if (games < 1) {
print("how do you fist that many?", "red");
return;
}
int adv = my_adventures();
// identify tradeable, unused skillbooks in inventory for which you already know the skill
foreach it in $items[]
if (it.available_amount() > 0
&& it.string_modifier('Skill').to_skill() != $skill[none]
&& it.tradeable
&& it.string_modifier('Skill').to_skill().have_skill())
print(`{it.available_amount()} {it}; `);
// identify skillbooks in inventory for which you DO NOT already know the skill
foreach it in $items[]
if (it.available_amount() + it.storage_amount() + it.display_amount() > 0
&& it.string_modifier('Skill') != ''
&& !it.string_modifier('Skill').to_skill().have_skill())
print(`{it}`);
@DamianDominoDavis
DamianDominoDavis / 2c_hunter.ash
Last active April 21, 2022 21:52
search 2CRS seeds for enchants
// search a specific 2CRS seed for an enchantment type, by source
float[item] scores;
item[int] them;
boolean[string] types;
int[item] sizes;
string[item] quals;
effect[item] effs;
int[item] durs;
string[item] mods;
//Renew Effects Before They Expire, for example to preserve your MP cap.
// from in your mood panel, an unconditional trigger can command, for example, "preserve_effect Tomato Power"
// or from CLI as "trigger unconditional, Tomato Power, preserve_effect Tomato Power"
int FWR_THAN = 1;
void preserve_one(effect ef, string cli) {
if (ef.have_effect() <= FWR_THAN) {
cli.cli_execute();
if (ef.have_effect() <= FWR_THAN)
string kmb_num(float x) {
for i from 9 to 3 by 3
if (x >= 10**i)
return to_int(x / 10**i) + string[]{'k','M','B'}[i/3 - 1];
return x.to_int();
}
boolean have_familiar_or_pocket(familiar f) {
static buffer b = visit_url('familiarnames.php');
return f.have_familiar() || b.contains_text('the ' + f);