GitHub PullRequestReviewCommentEvent at 2014-04-17 00:32:05
Repository: Cataclysm-DDA
Actor: i2amroy
Payload: {"comment":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/comments/11714519","id":11714519,"diff_hunk":"@@ -130,6 +360,155 @@ void effect::mod_intensity(int nintensity)\n     intensity += nintensity;\n }\n \n+body_part effect::get_bp()\n+{\n+    return bp;\n+}\n+int effect::get_side()\n+{\n+    return side;\n+}\n+\n+int effect::get_str_mod(bool reduced)\n+{\n+    int ret = 0;\n+    if (!reduced) {\n+        ret += eff_type->base_mods.str_mod;\n+        ret += eff_type->scaling_mods.str_mod * intensity;\n+    } else {\n+        ret += eff_type->base_mods.str_mod_reduced;\n+        ret += eff_type->scaling_mods.str_mod_reduced * intensity;\n+    }\n+    return ret;\n+}\n+int effect::get_dex_mod(bool reduced)\n+{\n+    int ret = 0;\n+    if (!reduced) {\n+        ret += eff_type->base_mods.dex_mod;\n+        ret += eff_type->scaling_mods.dex_mod * intensity;\n+    } else {\n+        ret += eff_type->base_mods.dex_mod_reduced;\n+        ret += eff_type->scaling_mods.dex_mod_reduced * intensity;\n+    }\n+    return ret;\n+}\n+int effect::get_per_mod(bool reduced)\n+{\n+    int ret = 0;\n+    if (!reduced) {\n+        ret += eff_type->base_mods.per_mod;\n+        ret += eff_type->scaling_mods.per_mod * intensity;\n+    } else {\n+        ret += eff_type->base_mods.per_mod_reduced;\n+        ret += eff_type->scaling_mods.per_mod_reduced * intensity;\n+    }\n+    return ret;\n+}\n+int effect::get_int_mod(bool reduced)\n+{\n+    int ret = 0;\n+    if (!reduced) {\n+        ret += eff_type->base_mods.int_mod;\n+        ret += eff_type->scaling_mods.int_mod * intensity;\n+    } else {\n+        ret += eff_type->base_mods.int_mod_reduced;\n+        ret += eff_type->scaling_mods.int_mod_reduced * intensity;\n+    }\n+    return ret;\n+}\n+int effect::get_speed_boost(bool reduced)\n+{\n+    int ret = 0;\n+    if (!reduced) {\n+        ret += eff_type->base_mods.speed_mod;\n+        ret += eff_type->scaling_mods.speed_mod * intensity;\n+    } else {\n+        ret += eff_type->base_mods.speed_mod_reduced;\n+        ret += eff_type->scaling_mods.speed_mod_reduced * intensity;\n+    }\n+    return ret;\n+}\n+int effect::get_pain(bool reduced)\n+{\n+    int ret = 0;\n+    if (!reduced) {\n+        ret += rng(eff_type->base_mods.pain_min, eff_type->base_mods.pain_max);","path":"src/effect.cpp","position":397,"original_position":397,"commit_id":"4095efa487afdd5aecbb661c8d04d5bdb5913df6","original_commit_id":"4095efa487afdd5aecbb661c8d04d5bdb5913df6","user":{"login":"i2amroy","id":4275617,"avatar_url":"https://avatars.githubusercontent.com/u/4275617?","gravatar_id":"cd57f0d79ae2acbec99d6e4f803f6ba4","url":"https://api.github.com/users/i2amroy","html_url":"https://github.com/i2amroy","followers_url":"https://api.github.com/users/i2amroy/followers","following_url":"https://api.github.com/users/i2amroy/following{/other_user}","gists_url":"https://api.github.com/users/i2amroy/gists{/gist_id}","starred_url":"https://api.github.com/users/i2amroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i2amroy/subscriptions","organizations_url":"https://api.github.com/users/i2amroy/orgs","repos_url":"https://api.github.com/users/i2amroy/repos","events_url":"https://api.github.com/users/i2amroy/events{/privacy}","received_events_url":"https://api.github.com/users/i2amroy/received_events","type":"User","site_admin":false},"body":"That fixed it, thanks. :D","created_at":"2014-04-17T00:32:05Z","updated_at":"2014-04-17T00:32:05Z","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/7255#discussion_r11714519","pull_request_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/7255","_links":{"self":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/comments/11714519"},"html":{"href":"https://github.com/CleverRaven/Cataclysm-DDA/pull/7255#discussion_r11714519"},"pull_request":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/7255"}}}}