Skip to content

Commit

Permalink
[MIRROR] Gives drones the ablity to using the crafting menu again [MD…
Browse files Browse the repository at this point in the history
…B IGNORE] (#877)

* Gives drones the ablity to using the crafting menu again (#79960)

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: WarlockD <[email protected]>
Co-authored-by: Giz <[email protected]>
  • Loading branch information
4 people authored Nov 29, 2023
1 parent ff081d2 commit 39d190b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/__DEFINES/hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@

//Drones
#define ui_drone_drop "CENTER+1:18,SOUTH:5"
#define ui_drone_pull "CENTER+2:2,SOUTH:5"
#define ui_drone_pull "CENTER+1.5:2,SOUTH:5"
#define ui_drone_storage "CENTER-2:14,SOUTH:5"
#define ui_drone_head "CENTER-3:14,SOUTH:5"

Expand Down
3 changes: 3 additions & 0 deletions code/modules/mob/living/basic/drone/_drone.dm
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@
AddElement(/datum/element/dextrous, hud_type = hud_type)
AddComponent(/datum/component/basic_inhands, y_offset = getItemPixelShiftY())
AddComponent(/datum/component/simple_access, SSid_access.get_region_access_list(list(REGION_ALL_GLOBAL)))
AddComponent(/datum/component/personal_crafting) // Kind of hard to be a drone and not be able to make tiles

if(default_storage)
var/obj/item/storage = new default_storage(src)
Expand Down Expand Up @@ -348,6 +349,7 @@

var/static/list/not_shy_of = typecacheof(list(/mob/living/basic/drone, /mob/living/simple_animal/bot))
if(shy)
REMOVE_TRAIT(src, TRAIT_CAN_STRIP, DRONE_SHY_TRAIT) // To shy to touch someone elses hat
ADD_TRAIT(src, TRAIT_PACIFISM, DRONE_SHY_TRAIT)
LoadComponent(/datum/component/shy, mob_whitelist=not_shy_of, shy_range=3, message="Your laws prevent this action near %TARGET.", keyless_shy=FALSE, clientless_shy=TRUE, dead_shy=FALSE, dead_shy_immediate=TRUE, machine_whitelist=shy_machine_whitelist)
LoadComponent(/datum/component/shy_in_room, drone_bad_areas, "Touching anything in %ROOM could break your laws.")
Expand All @@ -356,6 +358,7 @@
RegisterSignal(src, COMSIG_TRY_USE_MACHINE, PROC_REF(blacklist_on_try_use_machine))
RegisterSignal(src, COMSIG_TRY_WIRES_INTERACT, PROC_REF(blacklist_on_try_wires_interact))
else
ADD_TRAIT(src, TRAIT_CAN_STRIP, DRONE_SHY_TRAIT) // ...I wonder if I can ware pants like a hat
REMOVE_TRAIT(src, TRAIT_PACIFISM, DRONE_SHY_TRAIT)
qdel(GetComponent(/datum/component/shy))
qdel(GetComponent(/datum/component/shy_in_room))
Expand Down
1 change: 0 additions & 1 deletion modular_skyrat/modules/drone_adjustments/drone.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
/mob/living/basic/drone/Initialize(mapload)
. = ..()
name = "[initial(name)] [rand(0,9)]-[rand(100,999)]" //So that we can identify drones from each other
AddComponent(/datum/component/personal_crafting)

/obj/item/storage/backpack/drone_bag
name = "drone backpack"
Expand Down

0 comments on commit 39d190b

Please sign in to comment.