Advertisement
i2amroy

Untitled

Oct 21st, 2014
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. effect Creature::get_effect(efftype_id eff_id, body_part bp) const
  2. {
  3. if(effects.find(eff_id) != effects.end()) {
  4. if (effects[eff_id].find((int)bp) != effects[eff_id].end()) {
  5. return effects[eff_id][(int)bp];
  6. }
  7. }
  8. return effect();
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement