mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-05-14 10:50:50 +01:00
b4539344e4
* bugfix turned into a refactor * fixes exploit with producing infinite metal * Update code/__DEFINES/construction.dm Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com> Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com>
17 lines
630 B
Plaintext
17 lines
630 B
Plaintext
/obj/item/mounted/frame/newscaster_frame
|
|
name = "newscaster frame"
|
|
desc = "Used to build newscasters, just secure to the wall."
|
|
icon_state = "newscaster"
|
|
item_state = "syringe_kit"
|
|
|
|
materials = list(MAT_METAL=14000, MAT_GLASS=8000)
|
|
mount_requirements = MOUNTED_FRAME_SIMFLOOR | MOUNTED_FRAME_NOSPACE
|
|
metal_sheets_refunded = 7
|
|
glass_sheets_refunded = 4
|
|
|
|
/obj/item/mounted/frame/newscaster_frame/do_build(turf/on_wall, mob/user)
|
|
var/obj/machinery/newscaster/N = new /obj/machinery/newscaster(get_turf(src), get_dir(on_wall, user), 1)
|
|
N.pixel_y -= (loc.y - on_wall.y) * 32
|
|
N.pixel_x -= (loc.x - on_wall.x) * 32
|
|
qdel(src)
|