Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******************************************************************************
- add Dolphin Repoman to your current mood by typing this line in the CLI:
- trigger unconditional, , dolphinRepoMan.ash
- or by adding it with an unconditional trigger on KoLmafia's Mood Setup tab.
- */
- item stolenItem;
- string stolenItemName = get_property("dolphinItem");
- if (stolenItemName !="") {
- int minValue = mall_price($item[dolphin whistle]) + get_property("valueOfAdventure").to_int();
- stolenItem = stolenItemName.to_item();
- int itemValue = mall_price(stolenItem);
- if (itemValue > minValue) {
- use($item[dolphin whistle]);
- print(stolenItemName + " was stolen, and it's worth to spend " + minValue + " to recoup it, since it sells for " + itemValue, "green");
- }
- else
- print(stolenItemName + " was stolen, and it's NOT worth to spend " + minValue + " to recoup it, since it sells for " + itemValue, "red");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement