Posted By

justincrounds on 09/09/10


Tagged


Versions (?)

yuck


 / Published in: Rails
 

  1. allblanks = player.items.find_all_by_itemset("Blank Mech")
  2. allblanks.each do |thisblank|
  3. if player.inventoryitems.find_by_item_id(thisblank.id).mech_id == nil
  4. player.inventoryitems.delete_by_item_id(thisblank.id)
  5. end
  6. end

Report this snippet  

You need to login to post a comment.