IPC battery rework, ion rifle nerf, surge damage. (#10245)

- EMPs no longer deal permanent damage. Instead, they deal a temporary kind of damage called surge damage, that lasts for 10 seconds at maximum.
  - Surge damage makes mechanical or assisted limbs count as broken and nonfunctional.
  - Surge damage has special interactions with the mechanical heart and eyes.
  - EMP damage is no longer randomized. It is now much more consistent.
  - IPC battery is no longer represented as nutrition. Instead, the microbattery organ contains a super-capacity cell that is used for all their actions. This is represented with a new HUD icon.
  - Hardsuits can now be charged in robot chargers if you are wearing them.
  - Ion bolts now have a hit sound.
  - Removed the ion rifle lethal mode.
  - The ion rifle now has four shots.
This commit is contained in:
Matt Atlas
2020-12-19 01:34:40 +01:00
committed by GitHub
parent a61e0e7047
commit 8007ccd2ea
44 changed files with 396 additions and 284 deletions
+5 -7
View File
@@ -178,7 +178,8 @@
return
/obj/item/device/flash/emp_act(severity)
if(broken) return
if(broken)
return
flash_recharge()
switch(times_used)
if(0 to 5)
@@ -187,13 +188,10 @@
icon_state = "flashburnt"
return
times_used++
if(istype(loc, /mob/living/carbon))
if(iscarbon(loc))
var/mob/living/carbon/M = loc
var/safety = M.eyecheck(TRUE)
if(safety < FLASH_PROTECTION_MODERATE)
M.flash_eyes()
for(var/mob/O in viewers(M, null))
O.show_message("<span class='disarm'>[M] is blinded by the flash!</span>")
M.flash_eyes()
to_chat(M, SPAN_WARNING("Your [name] goes off!"))
..()
/obj/item/device/flash/synthetic