Fixes some golem oversights. (#30605)

This commit is contained in:
XFirebirdX
2025-10-04 00:33:19 +00:00
committed by GitHub
parent d371951ee9
commit 31a357b48d
3 changed files with 10 additions and 1 deletions
+1
View File
@@ -208,6 +208,7 @@
desc = "A tightly furled roll of paper, covered with indecipherable runes."
icon = 'icons/obj/wizard.dmi'
icon_state = "scroll"
requires_golem_person = TRUE
/obj/item/organ/internal/brain/cluwne
+2 -1
View File
@@ -32,7 +32,8 @@
var/requires_robotic_bodypart = FALSE
/// When this variable is true, it can only be installed on the machine person species.
var/requires_machine_person = FALSE
/// When this variable is true, it can only be inserted on the golem species.
var/requires_golem_person = FALSE
///Should this organ be destroyed on removal?
var/destroy_on_removal = FALSE
+7
View File
@@ -389,6 +389,10 @@
to_chat(user, "<span class='warning'>[I] is an organ that requires an IPC interface! [target]'s [parse_zone(target_zone)] does not have one.</span>")
return SURGERY_BEGINSTEP_SKIP
if(I.requires_golem_person && !isgolem(target))
to_chat(user, "<span class='warning'>[I] requires a Golem body! [I] won't fit into [target]'s body.</span>")
return SURGERY_BEGINSTEP_SKIP
if(target_zone != I.parent_organ || target.get_organ_slot(I.slot))
to_chat(user, "<span class='notice'>There is no room for [I] in [target]'s [parse_zone(target_zone)]!</span>")
return SURGERY_BEGINSTEP_SKIP
@@ -428,6 +432,9 @@
if(I.requires_machine_person && !ismachineperson(target))
to_chat(user, "<span class='warning'>[I] requires an IPC interface!</span>")
return SURGERY_STEP_INCOMPLETE
if(I.requires_golem_person && !isgolem(target))
to_chat(user, "<span class='warning'>[I] requires a Golem body! [I] won't fit into [target]'s body.</span>")
return SURGERY_STEP_INCOMPLETE
if(!user.drop_item())
to_chat(user, "<span class='warning'>[I] is stuck to your hand, you can't put it in [target]!</span>")
return SURGERY_STEP_INCOMPLETE