void usePanto(stat statBuff, element eleResBuff, string leftSac, string middleSac, string rightSac) { item[3] sacrificialItems; int[5] choices; int[3] sacrificialAmount; switch (statBuff) { case $stat[muscle]: choices[0] = 1; break; case $stat[mysticality]: choices[0] = 2; break; case $stat[moxie]: choices[0] = 3; break; default: print_html("Invalid input for stat to buff."); return; } switch (eleResBuff) { case $element[hot]: choices[1] = 1; break;, case $element[cold]: choices[1] = 2; break; case $element[spooky]: choices[1] = 3; break; case $element[sleaze]: choices[1] = 4; break; case $element[stench]: choices[1] = 5; break; default: print_html("Invalid input for elemental resistance to buff."); return; } sacrificialItems[0] = to_item(leftSac); sacrificialAmount[0] = 1; switch (to_lower_case(leftSac)) { case "drops of blood": # HP+40 choices[2] = -2; sacrificialAmount[0] = 0; break; case "nail clippings": # MP+20 choices[2] = -1; sacrificialAmount[0] = 0; break; case "red pixel potion": # HP-regen 5-10 case "royal jelly": # HP-regen 5-15 case "scented massage oil": # HP-regen 10-20 case "cherry cloaca cola": # MP-regen 5-10 case "bubblin' crude": # MP-regen 5-15 case "glowing new age crystal": # MP-regen 10-20 case "baconstone": # -3 MP to use skills choices[2] = to_int(sacrificialItems[0]); break; default: print_html("Invalid input for left sacrifice (HP / MP stuff)."); return; } sacrificialItems[1] = to_item(middleSac); sacrificialAmount[1] = 1; switch (to_lower_case(middleSac)) { case "some self-respect": # -combat choices[3] = -2; sacrificialAmount[1] = 0; break; case "some self-control": # +combat choices[3] = -1; sacrificialAmount[1] = 0; break; case "bar skin": # +50% initiative case "hamethyst": # +10% crit. chance case "huge bowl of candy": # +100% candy drops case "wriggling worm": # +5 fishing skill case "ten-leaf clover": # -3 MP to use skills choices[3] = to_int(sacrificialItems[1]); break; case "lead necklace": # +10 lbs familiar weight case "sea salt crystal": # Makes you a better diver choices[3] = to_int(sacrificialItems[1]); sacrificialAmount[1] = 11; break case "8-ball": # +5 pool skill choices[3] = to_int(sacrificialItems[1]); sacrificialAmount[1] = 15; break case "moxie weed": # +5 pool skill choices[3] = to_int(sacrificialItems[1]); sacrificialAmount[1] = 99; break; default: print_html("Invalid input for middle sacrifice (various stuff)."); return; } sacrificialItems[2] = to_item(rightSac); sacrificialAmount[2] = 1; switch (to_lower_case(middleSac)) { case "your hopes": # +20 weapon damage choices[4] = -2; sacrificialAmount[2] = 0; break; case "your dreams": # +20 spell damage choices[4] = -1; sacrificialAmount[2] = 0; break; case "taco shell": # +30% meat case "porquoise": # +60% meat case "fairy gravy boat": # +15% item drop case "tiny dancer": # +30% item drop choices[4] = to_int(sacrificialItems[2]); break; case "Knob Goblin firecracker": # +3 muscle stats per fight case "razor-sharp can lid": # +3 myst stats per fight case "spider web": # +3 moxie stats per fight choices[4] = to_int(sacrificialItems[2]); sacrificialAmount[2] = 3; break case "synthetic marrow": # +25% to all muscle gains case "haunted battery": # +25% to all muscle gains case "the funk": # +25% to all muscle gains choices[4] = to_int(sacrificialItems[2]); sacrificialAmount[2] = 5; break default: print_html("Invalid input for right sacrifice (mostly +meat / item / stat stuff)."); return; } }