mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 15:42:35 +00:00
Lohikar's bugfixes (#6364)
This commit is contained in:
committed by
Werner
parent
edebe4c72f
commit
15640f0286
@@ -85,6 +85,12 @@
|
||||
icon_state = icon_state_unpowered
|
||||
|
||||
cut_overlays()
|
||||
if(damage >= broken_damage)
|
||||
icon_state = icon_state_broken
|
||||
add_overlay("broken")
|
||||
return
|
||||
else
|
||||
icon_state = initial(icon_state)
|
||||
if(!enabled)
|
||||
if(icon_state_screensaver && working)
|
||||
if (is_holographic)
|
||||
|
||||
@@ -33,15 +33,16 @@
|
||||
|
||||
if(damage >= max_damage)
|
||||
break_apart()
|
||||
update_icon()
|
||||
|
||||
// Stronger explosions cause serious damage to internal components
|
||||
// Minor explosions are mostly mitigitated by casing.
|
||||
/obj/item/modular_computer/ex_act(var/severity)
|
||||
take_damage(rand(100,200) / severity, 30 / severity)
|
||||
take_damage(rand(125, 200) / severity, 30 / severity)
|
||||
|
||||
// EMPs are similar to explosions, but don't cause physical damage to the casing. Instead they screw up the components
|
||||
/obj/item/modular_computer/emp_act(var/severity)
|
||||
take_damage(rand(100,200) / severity, 50 / severity, 0)
|
||||
take_damage(rand(100, 200) / severity, 50 / severity, 0)
|
||||
|
||||
// "Stun" weapons can cause minor damage to components (short-circuits?)
|
||||
// "Burn" damage is equally strong against internal components and exterior casing
|
||||
|
||||
@@ -181,6 +181,7 @@
|
||||
if(WT.remove_fuel(round(damage/75)) && do_after(usr, damage/10))
|
||||
damage = 0
|
||||
to_chat(user, "You repair \the [src].")
|
||||
update_icon()
|
||||
return
|
||||
|
||||
if(W.isscrewdriver())
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
var/icon_state_unpowered = null // Icon state when the computer is turned off
|
||||
var/icon_state_menu = "menu" // Icon state overlay when the computer is turned on, but no program is loaded that would override the screen.
|
||||
var/icon_state_screensaver = null
|
||||
var/icon_state_broken = null
|
||||
var/screensaver_light_range = 0
|
||||
var/screensaver_light_color = null
|
||||
var/menu_light_color = null
|
||||
|
||||
Reference in New Issue
Block a user