mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
[MIRROR] Modular computer fixes [MDB IGNORE] (#16966)
* Modular computer fixes (#70606) * Moves a lot of modular computer attackbys to the cpu instead, which is what handles it all. This allows their parts to be removed and the console deconstructed/repaired once again. * Modular computer fixes Co-authored-by: GoblinBackwards <22856555+GoblinBackwards@users.noreply.github.com>
This commit is contained in:
co-authored by
GoblinBackwards
parent
89f2c8d03f
commit
d89adf597a
@@ -312,10 +312,14 @@ GLOBAL_LIST_EMPTY(TabletMessengers) // a list of all active messengers, similar
|
||||
|
||||
/obj/item/modular_computer/examine(mob/user)
|
||||
. = ..()
|
||||
if(atom_integrity <= integrity_failure * max_integrity)
|
||||
. += span_danger("It is heavily damaged!")
|
||||
else if(atom_integrity < max_integrity)
|
||||
. += span_warning("It is damaged.")
|
||||
var/healthpercent = round((atom_integrity/max_integrity) * 100, 1)
|
||||
switch(healthpercent)
|
||||
if(50 to 99)
|
||||
. += span_info("It looks slightly damaged.")
|
||||
if(25 to 50)
|
||||
. += span_info("It appears heavily damaged.")
|
||||
if(0 to 25)
|
||||
. += span_warning("It's falling apart!")
|
||||
|
||||
if(long_ranged)
|
||||
. += "It is upgraded with an experimental long-ranged network capabilities, picking up NTNet frequencies while further away."
|
||||
|
||||
Reference in New Issue
Block a user