Adds miss chance and shield checks to thrown atoms

Also makes setting a thrown atom's throwing var the responsibility of
the handler, so that impact handling code can decide if the thrown atom
should keep on going.
This commit is contained in:
mwerezak
2014-07-14 23:53:27 -04:00
parent 177560cf4b
commit 836d2e40a8
6 changed files with 51 additions and 31 deletions

View File

@@ -147,7 +147,11 @@ proc/hasorgans(A)
*/
return zone
// Returns zone with a certain probability.
// If the probability misses, returns "chest" instead.
// If "chest" was passed in as zone, then on a "miss" will return "head", "l_arm", or "r_arm"
// Do not use this if someone is intentionally trying to hit a specific body part.
// Use get_zone_with_miss_chance() for that.
/proc/ran_zone(zone, probability)
zone = check_zone(zone)
if(!probability) probability = 90