mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-02-06 06:19:24 +00:00
* Demotes the "electrical conductivity" flag from `flags_1` to `obj_flags` (#80033) ## About The Pull Request Code to handle this flag only ever existed on the `/obj` sublevel, so there's no need for it to be on the `/atom` level `flags_1`. There was probably a point in time in which mobs or turfs conducted electricity but there's zero code for it anymore so we truly just live in a society now. ## Why It's Good For The Game Frees up a slot on `flags_1` (which is really nice actually), proper scoping of certain bitflag stuff, etc. ## Changelog Not relevant to players. I may have screwed something up, will be doing a few passes on this myself to ensure all the search and replaces went alright but we should be good™️ * Demotes the "electrical conductivity" flag from `flags_1` to `obj_flags` * Modular * Update misc.dm --------- Co-authored-by: san7890 <the@san7890.com> Co-authored-by: Giz <13398309+vinylspiders@users.noreply.github.com>
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
/obj/item/bitrunning_host_monitor
|
|
name = "host monitor"
|
|
|
|
custom_materials = list(/datum/material/iron = SMALL_MATERIAL_AMOUNT * 2)
|
|
desc = "A complex electronic that will analyze the connection health between host and avatar."
|
|
obj_flags = CONDUCTS_ELECTRICITY
|
|
icon = 'icons/obj/device.dmi'
|
|
icon_state = "host_monitor"
|
|
inhand_icon_state = "electronic"
|
|
item_flags = NOBLUDGEON
|
|
lefthand_file = 'icons/mob/inhands/items/devices_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/items/devices_righthand.dmi'
|
|
slot_flags = ITEM_SLOT_BELT
|
|
throw_range = 7
|
|
throw_speed = 3
|
|
throwforce = 3
|
|
w_class = WEIGHT_CLASS_TINY
|
|
worn_icon_state = "electronic"
|
|
|
|
/obj/item/bitrunning_host_monitor/attack_self(mob/user, modifiers)
|
|
. = ..()
|
|
|
|
var/datum/component/avatar_connection/connection = user.GetComponent(/datum/component/avatar_connection)
|
|
if(isnull(connection))
|
|
balloon_alert(user, "data not recognized")
|
|
return
|
|
|
|
var/mob/living/pilot = connection.old_body_ref?.resolve()
|
|
if(isnull(pilot))
|
|
balloon_alert(user, "host not recognized")
|
|
return
|
|
|
|
to_chat(user, span_notice("Current host health: [pilot.health / pilot.maxHealth * 100]%"))
|