//Green text. Function here. public void loot(Floor fl) { for (int i = 0; i < fl.show_me_the_money().Count; i++) { gridCoordinate moneyPos = fl.show_me_the_money()[i].get_my_grid_C(); if (my_grid_coord.x == moneyPos.x && my_grid_coord.y == moneyPos.y) { int gold_val = fl.show_me_the_money()[i].my_quantity; add_gold(gold_val); message_buffer.Add("You loot " + gold_val + " gold!"); fl.add_new_popup("+ " + gold_val + " gold!", Popup.popup_msg_type.Alert, my_grid_coord, false, false); fl.show_me_the_money().RemoveAt(i); break; } } }