mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-06 07:22:15 +00:00
RADIATION SUITS added to engineering
RADIATION SUITS protect from 100% radiation RIG SUIT offers some protection from singularity's radiation SPACE SUITS offer little protection, but some none the less being UNPROTECTED near the singularity is still deadly and I'd like this to not change. Use radiation suits! git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1030 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -351,9 +351,23 @@ var/global/list/uneatable = list(
|
||||
radiation = round(((src.energy-150)/50)*5,1)
|
||||
for(var/mob/living/carbon/M in view(toxrange, src.loc))
|
||||
if(istype(M,/mob/living/carbon/human))
|
||||
if(M:wear_suit) //TODO: check for radiation protection
|
||||
toxloss = round(toxloss/2,1)
|
||||
radiation = round(radiation/2,1)
|
||||
if(M:wear_suit)
|
||||
var/P = M:wear_suit.radiation_protection
|
||||
if (P > 0)
|
||||
if (P == 1)
|
||||
M << "The [M:wear_suit] beeps, indicating it just received a burst of radiation. Good thing you had it on."
|
||||
return
|
||||
if (toxloss >= 100)
|
||||
toxloss = 100 - (P * 100) //a suit which protects you from 10% radiation will make you only receive 90 damage even if you're showered with a MILLION points of toxloss
|
||||
else
|
||||
toxloss = toxloss - (P * toxloss)
|
||||
if (radiation > 15)
|
||||
radiation = 15 - (15 * P)
|
||||
else
|
||||
radiation = radiation - (P * radiation)
|
||||
M << "\red The [M:wear_suit] absorbs some of the radiation from the singularity."
|
||||
else
|
||||
M << "\red You feel odd."
|
||||
M.toxloss += toxloss
|
||||
M.radiation += radiation
|
||||
M.updatehealth()
|
||||
|
||||
Reference in New Issue
Block a user