mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 11:05:03 +01:00
Ports the TG Dish Drive. A quality of life machine for service. (#18855)
* ILOVEBARTENDING * improvements * oopsie daisy * Apply suggestions from code review Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> Co-authored-by: ElorgRHG <71735193+ElorgRHG@users.noreply.github.com> * Update cable.dm * fixes cable runtimes * Apply suggestions from code review Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com> * applies for code critique * steelslayerreview * Update code/game/machinery/constructable_frame.dm Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com> Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> Co-authored-by: ElorgRHG <71735193+ElorgRHG@users.noreply.github.com> Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>
This commit is contained in:
@@ -975,6 +975,15 @@
|
||||
visible_message("<span class='notice'>[user] butchers [src].</span>")
|
||||
gib()
|
||||
|
||||
/mob/living/proc/can_use(atom/movable/M, be_close = FALSE)
|
||||
if(HAS_TRAIT(src, TRAIT_HANDS_BLOCKED))
|
||||
to_chat(src, "<span class='warning'>You can't do that right now!</span>")
|
||||
return FALSE
|
||||
if(be_close && !in_range(M, src))
|
||||
to_chat(src, "<span class='warning'>You are too far away!</span>")
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
/mob/living/movement_delay(ignorewalk = 0)
|
||||
. = ..()
|
||||
if(isturf(loc))
|
||||
|
||||
@@ -515,7 +515,6 @@ GLOBAL_LIST_INIT(cable_coil_recipes, list (new/datum/stack_recipe/cable_restrain
|
||||
|
||||
/obj/item/stack/cable_coil/New(loc, length = MAXCOIL, paramcolor = null)
|
||||
..()
|
||||
amount = length
|
||||
if(paramcolor)
|
||||
color = paramcolor
|
||||
pixel_x = rand(-2,2)
|
||||
@@ -835,6 +834,13 @@ GLOBAL_LIST_INIT(cable_coil_recipes, list (new/datum/stack_recipe/cable_restrain
|
||||
update_appearance(UPDATE_NAME|UPDATE_ICON_STATE)
|
||||
update_wclass()
|
||||
|
||||
|
||||
/obj/item/stack/cable_coil/five
|
||||
|
||||
// Passes '5' to the parent as `new_amount`, so 5 coils are created.
|
||||
/obj/item/stack/cable_coil/five/New(loc, new_amount = 5, merge = TRUE, paramcolor = null)
|
||||
..()
|
||||
|
||||
/obj/item/stack/cable_coil/yellow
|
||||
color = COLOR_YELLOW
|
||||
|
||||
|
||||
@@ -342,6 +342,16 @@
|
||||
build_path = /obj/item/circuitboard/smartfridge
|
||||
category = list ("Misc. Machinery")
|
||||
|
||||
/datum/design/dish_drive
|
||||
name = "Machine Design (Dish Drive Board)"
|
||||
desc = "The circuit board for a dish drive."
|
||||
id = "dishdrive"
|
||||
req_tech = list("programming" = 1)
|
||||
build_type = IMPRINTER
|
||||
materials = list(MAT_GLASS = 1000)
|
||||
build_path = /obj/item/circuitboard/dish_drive
|
||||
category = list("Misc. Machinery")
|
||||
|
||||
/datum/design/monkey_recycler
|
||||
name = "Machine Design (Monkey Recycler Board)"
|
||||
desc = "The circuit board for a monkey recycler."
|
||||
|
||||
Reference in New Issue
Block a user