//
// Rainbow gravitation!
//
print("Casting rainbow gravitation...","blue");
if (can_interact() && (my_meat() > 1000000)) {
if (item_amount($item[twinkly wad]) < 3) {
buy(3-item_amount($item[twinkly wad]),$item[twinkly wad]);
}
if (item_amount($item[hot wad]) < 3) {
buy(3-item_amount($item[hot wad]),$item[hot wad]);
}
if (item_amount($item[cold wad]) < 3) {
buy(3-item_amount($item[cold wad]),$item[cold wad]);
}
if (item_amount($item[stench wad]) < 3) {
buy(3-item_amount($item[stench wad]),$item[stench wad]);
}
if (item_amount($item[spooky wad]) < 3) {
buy(3-item_amount($item[spooky wad]),$item[spooky wad]);
}
if (item_amount($item[sleaze wad]) < 3) {
buy(3-item_amount($item[sleaze wad]),$item[sleaze wad]);
}
}
for i from 1 upto 3 {
int beforetotal = item_amount($item[prismatic wad]);
checkmp(30);
use_skill(1, $skill[Rainbow Gravitation]);
if (item_amount($item[prismatic wad]) == beforetotal) {
// casting rainbow grav failed probably missing a wad
print("Casting skill Rainbow Gravitiation failed!","red");
break;
}
}