/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
Bleeding-Edge
code/game/objects/structures/misc_structures.dm
102 строки
3 KB
ShiftyRail
Moves around a bunch of stuff in the codebase. Add a file explaining the general structure of the codebase. (#37568)
19 май 2025, 16:41
Не верифицирован
19 май 2025, 16:41
1e1de9e
Код
Авторство
О чём код?
/obj/structure/headpole name = "pole" icon = 'icons/obj/structures.dmi' icon_state = "metal_pike" desc = "How did this get here?" density = 0 anchored = 1 var/obj/item/weapon/spear/spear = null var/obj/item/organ/external/head/head = null var/image/display_head = null /obj/structure/headpole/New(atom/A, var/obj/item/organ/external/head/H, var/obj/item/weapon/spear/S) ..(A) if(istype(H)) head = H name = "[H.name]" var/mob/living/carbon/human/body = H.origin_body?.get() if(body) desc = "The severed head of [body.real_name], crudely shoved onto the tip of a spear." else desc = "A severed head, crudely shoved onto the tip of a spear." display_head = new (src) display_head.appearance = H.appearance display_head.transform = matrix() display_head.dir = SOUTH display_head.pixel_y = -3 * PIXEL_MULTIPLIER display_head.pixel_x = 1 * PIXEL_MULTIPLIER overlays += display_head.appearance if(S) spear = S S.forceMove(src) if(istype(S, /obj/item/weapon/spear/wooden)) icon_state = "wooden_pike" pixel_x = rand(-12,12) pixel_y = rand(0,20) var/matrix/M = matrix() M.Turn(rand(-20,20)) transform = M /obj/structure/headpole/attackby(obj/item/weapon/W, mob/user) ..() if(istype(W, /obj/item/tool/crowbar)) to_chat(user, "You pry \the [head] off \the [spear].") if(head) head.forceMove(get_turf(src)) head = null if(spear) spear.forceMove(get_turf(src)) spear = null else new /obj/item/weapon/spear(get_turf(src)) qdel(src) /obj/structure/headpole/Destroy() if(head) QDEL_NULL(head) if(spear) QDEL_NULL(spear) if(display_head) QDEL_NULL(display_head) ..() /obj/structure/headpole/with_head/New(atom/A) var/obj/item/organ/external/head/H = new (src) H.name = "severed head" spear = new (src) ..(A, H) /obj/structure/bigpeppermint_red name = "mounted peppermint" icon = 'icons/obj/structures.dmi' icon_state = "bigpeppermint_red" desc = "Must be a culture thing." density = 0 anchored = 1 /obj/structure/bigpeppermint_green name = "mounted peppermint" icon = 'icons/obj/structures.dmi' icon_state = "bigpeppermint_green" desc = "Must be a culture thing." density = 0 anchored = 1 /obj/structure/signpost icon = 'icons/obj/stationobjs.dmi' icon_state = "signpost" anchored = 1 density = 1 /obj/structure/signpost/attackby(obj/item/weapon/W as obj, mob/user as mob) return attack_hand(user) /obj/structure/signpost/attack_hand(mob/user as mob) switch(alert("Travel back to ss13?",,"Yes","No")) if("Yes") if(user.z != src.z) return user.loc.loc.Exited(user) user.forceMove(pick(latejoin)) if("No") return