mirror of
https://github.com/Skyrat-SS13/Skyrat-tg.git
synced 2026-08-27 06:48:24 +01: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>
27 lines
1.1 KiB
Plaintext
27 lines
1.1 KiB
Plaintext
/obj/item/door_seal
|
|
name = "pneumatic airlock seal"
|
|
desc = "A brace used to seal and reinforce an airlock. Useful for making areas inaccessible to those without opposable thumbs."
|
|
icon = 'icons/obj/machines/wallmounts.dmi'
|
|
icon_state = "pneumatic_seal"
|
|
inhand_icon_state = "pneumatic_seal"
|
|
lefthand_file = 'icons/mob/inhands/items_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/items_righthand.dmi'
|
|
obj_flags = CONDUCTS_ELECTRICITY
|
|
resistance_flags = FIRE_PROOF | ACID_PROOF
|
|
force = 5
|
|
throwforce = 5
|
|
throw_speed = 2
|
|
throw_range = 1
|
|
w_class = WEIGHT_CLASS_NORMAL
|
|
custom_materials = list(/datum/material/iron= SHEET_MATERIAL_AMOUNT * 2.5, /datum/material/plasma= SMALL_MATERIAL_AMOUNT * 5)
|
|
/// how long the seal takes to place on the door
|
|
var/seal_time = 3 SECONDS
|
|
/// how long it takes to remove the seal from a door
|
|
var/unseal_time = 2 SECONDS
|
|
|
|
/obj/item/door_seal/suicide_act(mob/living/user)
|
|
user.visible_message(span_suicide("[user] is sealing [user.p_them()]self off from the world with [src]! It looks like [user.p_theyre()] trying to commit suicide!"))
|
|
playsound(src, 'sound/items/jaws_pry.ogg', 30, TRUE)
|
|
return BRUTELOSS
|
|
|