Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RegisterResourceGenerationFunction("IOTMPowerfulGloveGenerateResource");
- void IOTMPowerfulGloveGenerateResource(ChecklistEntry [int] resource_entries)
- {
- if ( $item[Powerful Glove].available_amount() == 0) return;
- int battery_left = clampi(100 - get_property_int("_powerfulGloveBatteryPowerUsed"), 0, 100);
- if( battery_left == 0 ) return;
- ChecklistEntry entry;
- entry.image_lookup_name = "__item Powerful Glove";
- entry.importance_level = 5;
- entry.url = "inventory.php?which=3&ftext=powerful+glove";
- string [int] description;
- if ($item[Powerful Glove].equipped_amount() == 0)
- {
- description.listAppend(
- HTMLGenerateSpanOfClass(
- HTMLGenerateSpanOfClass(
- "It's so bad",
- "r_tooltip_inner_class"
- ) + "Equip the Powerful Glove first.",
- "r_tooltip_outer_class"
- )
- );
- }
- string [int][int] cheat_codes;
- cheat_codes[0][0] = "Triple Size";
- cheat_codes[0][1] = "5%";
- cheat_codes[0][2] = "+200% stats (20 turns)";
- cheat_codes[1][0] = "Invisible Avatar";
- cheat_codes[1][1] = "5%";
- cheat_codes[1][2] = "-10% combat (10 turns)";
- description.listAppend("Out of combat Effects: " +
- HTMLGenerateIndentedText( HTMLGenerateSimpleTableLines( cheat_codes ) ) );
- cheat_codes[0][0] = "Replace Enemy";
- cheat_codes[0][1] = "10%";
- cheat_codes[0][2] = "Swap to different native foe";
- cheat_codes[1][0] = "Shrink Enemy";
- cheat_codes[1][1] = "5%";
- cheat_codes[1][2] = "50% delevel + 50% HP damage";
- description.listAppend("Combat skills: " +
- HTMLGenerateIndentedText( HTMLGenerateSimpleTableLines( cheat_codes ) ) );
- resource_entries.listAppend(
- ChecklistEntryMake("__item Powerful Glove",
- entry.url,
- ChecklistSubentryMake("CHEAT CODES - " + battery_left + "% battery remaining",
- "",
- description
- )
- )
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement