mirror of
https://github.com/Skyrat-SS13/Skyrat-tg.git
synced 2026-08-24 21:37:53 +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
851 B
Plaintext
27 lines
851 B
Plaintext
/obj/item/stack/tile/light
|
|
name = "light tile"
|
|
singular_name = "light floor tile"
|
|
desc = "A floor tile, made out of glass. It produces light."
|
|
icon_state = "tile_e"
|
|
obj_flags = CONDUCTS_ELECTRICITY
|
|
attack_verb_continuous = list("bashes", "batters", "bludgeons", "thrashes", "smashes")
|
|
attack_verb_simple = list("bash", "batter", "bludgeon", "thrash", "smash")
|
|
turf_type = /turf/open/floor/light
|
|
merge_type = /obj/item/stack/tile/light
|
|
var/state = 0
|
|
|
|
/obj/item/stack/tile/light/attackby(obj/item/O, mob/user, params)
|
|
if(O.tool_behaviour == TOOL_CROWBAR)
|
|
new/obj/item/stack/sheet/iron(user.loc)
|
|
amount--
|
|
new/obj/item/stack/light_w(user.loc)
|
|
if(amount <= 0)
|
|
qdel(src)
|
|
else
|
|
return ..()
|
|
|
|
/obj/item/stack/tile/light/place_tile(turf/open/target_plating, mob/user)
|
|
. = ..()
|
|
var/turf/open/floor/light/floor = .
|
|
floor?.state = state
|