mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 20:47:10 +01:00
Fixes some golem oversights. (#30605)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user