Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float randValue = Utils::Random::frandom(0.0f, 100.0f);
- std::string key = "";
- for (auto it = drops.begin(); it != drops.end(); ++it) {
- if ((*it)->barrier >= randValue) {
- key = (*it)->key;
- break;
- }
- }
- return createDrop(key, x, y);
Advertisement
Add Comment
Please, Sign In to add comment