Can be Pulverized?

mredge73

Member
Ok
I am sure it is in here somewhere but I give up searching.

Is there a command or an easy way to see if an item is capable of being pulverized?

for example:
Code:
int [item] Smash;
//fill smash with random items
foreach i in Smash
{
if ( !(i can be smashed)) //this is where I need something
remove i;
}
//pulverize everything in smash
 

Bale

Minion
Absolutely!

Code:
boolean can_be_smashed(item it) {
  if(to_slot($item[it]) == $slot[none])
    return false;
  return true;
}
 

Bale

Minion
Or, just to plug it into your example...

Code:
int [item] Smash;
//fill smash with random items
foreach i in Smash
{
if ( to_slot($item[it]) == $slot[none])
remove i;
}
//pulverize everything in smash
 
Top