Skip to content

Commit

Permalink
Holodeck Nullrod Fix (#17692)
Browse files Browse the repository at this point in the history
  • Loading branch information
SleepyGemmy authored Nov 1, 2023
1 parent fe78140 commit ac84b46
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
12 changes: 11 additions & 1 deletion code/game/objects/items/weapons/chaplain_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
throw_range = 4
throwforce = 10
w_class = ITEMSIZE_SMALL
var/cooldown = 0 // floor tap cooldown
var/can_change_form = TRUE // For holodeck check.
var/cooldown = 0 // Floor tap cooldown.
var/static/list/nullchoices = list("Null Rod" = /obj/item/nullrod, "Null Staff" = /obj/item/nullrod/staff, "Null Orb" = /obj/item/nullrod/orb, "Null Athame" = /obj/item/nullrod/athame, "Tribunal Rod" = /obj/item/nullrod/dominia, "Tajaran charm" = /obj/item/nullrod/charm,
"Mata'ke Sword" = /obj/item/nullrod/matake, "Rredouane Sword" = /obj/item/nullrod/rredouane, "Shumaila Hammer" = /obj/item/nullrod/shumaila, "Zhukamir Ladle" = /obj/item/nullrod/zhukamir, "Azubarre Torch" = /obj/item/nullrod/azubarre)

Expand All @@ -36,6 +37,10 @@
icon_state = "tribunalrod"
item_state = "tribunalrod"

// Unreassembleable Variant for the Holodeck
/obj/item/nullrod/dominia/holodeck
can_change_form = FALSE

/obj/item/nullrod/staff
name = "null staff"
desc = "A staff of pure obsidian, its very presence disrupts and dampens the powers of paranormal phenomenae."
Expand Down Expand Up @@ -144,6 +149,11 @@
set category = "Object"
set src in usr

// Holodeck Check
if(!can_change_form)
to_chat(user, SPAN_NOTICE("You can't change a holographic item's form..."))
return

if(use_check_and_message(user, USE_FORCE_SRC_IN_USER))
return

Expand Down
6 changes: 6 additions & 0 deletions html/changelogs/SleepyGemmy-holodeck_nullrod_fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
author: SleepyGemmy

delete-after: True

changes:
- bugfix: "Fixed one of the holodeck templates having a real nullrod."
2 changes: 1 addition & 1 deletion maps/sccv_horizon/sccv_horizon-4_centcomm.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -38007,7 +38007,7 @@
dir = 1
},
/obj/structure/table/stone/marble,
/obj/item/nullrod/dominia,
/obj/item/nullrod/dominia/holodeck,
/turf/simulated/floor/marble,
/area/horizon/holodeck/source_tribunal)
"lGe" = (
Expand Down

0 comments on commit ac84b46

Please sign in to comment.