Advertisement
fredg1

organ tile

Jul 18th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.68 KB | None | 0 0
  1.     if (true) {
  2.         string image_name = "__item hell ramen";
  3.         ChecklistSubentry [int] subentries;
  4.         int importance = 11;
  5.         if (availableFullness() > 0) {
  6.             string [int] description;
  7.             if ($effect[Got Milk].have_effect() > 0)
  8.                 description.listAppend(pluralise($effect[Got Milk]) + " available (woah).");
  9.             if (!get_property_boolean("_milkOfMagnesiumUsed") && lookupItem("milk of magnesium").available_amount() > 0)
  10.                 description.listAppend("Use Milk of Magnesium for +5 adv.");
  11.             if ($effect[barrel of laughs].have_effect() >= 5) {
  12.                 int turns = $effect[barrel of laughs].have_effect();
  13.                 description.listAppend(pluralise($effect[barrel of laughs]) + " available" + (turns % 5 > 0 ? " (" + (turns - turns % 5) + ")" : "") + ".");
  14.             }
  15.             subentries.listAppend(ChecklistSubentryMake(availableFullness() + " fullness", "", description));
  16.         }
  17.         if (inebriety_limit() > 0) {
  18.             boolean stooperIsEquipped = my_familiar() == lookupFamiliar("Stooper");
  19.             boolean couldEquipStooper = lookupFamiliar("Stooper").familiar_is_usable() && !stooperIsEquipped;
  20.             string title = "";
  21.             string [int] description;
  22.             if (availableDrunkenness() >= 0) {
  23.                 boolean shotglassDrinkAvailable = !get_property_boolean("_mimeArmyShotglassUsed") && lookupItem("mime army shotglass").is_unrestricted() && lookupItem("mime army shotglass").available_amount() > 0;
  24.                 if (subentries.count() == 0)
  25.                     image_name = "__item gibson";
  26.                 if ($effect[ode to booze].have_effect() > 0)
  27.                     description.listAppend(pluralise($effect[ode to booze]) + " available.");
  28.                 if ($effect[salty mouth].have_effect() > 0)
  29.                     description.listAppend(pluralise($effect[salty mouth]) + " available. Drink beer for +5 adv!");
  30.                 if ($effect[beer barrel polka].have_effect() >= 5) {
  31.                     int turns = $effect[beer barrel polka].have_effect();
  32.                     description.listAppend(pluralise($effect[beer barrel polka]) + " available" + (turns % 5 > 0 ? " (" + (turns - turns % 5) + ")" : "") + ".");
  33.                 }
  34.                
  35.                 if (availableDrunkenness() > 0)
  36.                     title = availableDrunkenness() + " drunkenness" + (couldEquipStooper ? " + Stooper" : "");
  37.                 else {
  38.                     title = "Can overdrink";
  39.                     if (couldEquipStooper)
  40.                         description.listAppend("Could equip Stooper for +1 drunkenness.");
  41.                 }
  42.                 if (shotglassDrinkAvailable)
  43.                     description.listAppend("1 free 1-drunkenness booze available.");
  44.                 subentries.listAppend(ChecklistSubentryMake(title, "", description));
  45.             } else if (availableDrunkenness() == -1 && couldEquipStooper) {
  46.                 importance = -11;
  47.                 title = HTMLGenerateSpanFont("Equip the Stooper", "red");
  48.                 image_name = "__familiar stooper";
  49.                 description.listAppend("Can keep adventuring/overdrink further as long as it's equipped.");
  50.                 subentries.listAppend(ChecklistSubentryMake(title, "", description));
  51.             }
  52.         }
  53.         if (availableSpleen() > 0) {
  54.             if (subentries.count() == 0)
  55.                 image_name = "__item agua de vida";
  56.             subentries.listAppend(ChecklistSubentryMake(availableSpleen() + " spleen", "", ""));
  57.         }
  58.         if (subentries.count() > 0)
  59.             resource_entries.listAppend(ChecklistEntryMake(image_name, "inventory.php?which=1", subentries, importance));
  60.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement