mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 07:08:00 +01:00
Fixes internal/external organ for checks (#68045)
* Fixes internal/external organ for checks Fixes many single-letter vars for organ for loops Makes use of `as anything` more often Fixes the comment for external_organs to explain what it actually is for Fixes for loops checking internal_organs for external ones, as they aren't stored there (in dummy's harvest_organs, on_species_loss, and purrbation removal)
This commit is contained in:
@@ -40,13 +40,11 @@
|
||||
message_admins("[key_name_admin(usr)] has added implant [organ.type] to [ADMIN_LOOKUPFLW(C)]")
|
||||
|
||||
if("drop organ/implant", "remove organ/implant")
|
||||
for(var/X in C.internal_organs)
|
||||
var/obj/item/organ/I = X
|
||||
organs["[I.name] ([I.type])"] = I
|
||||
for(var/obj/item/organ/user_organs as anything in C.internal_organs)
|
||||
organs["[user_organs.name] ([user_organs.type])"] = user_organs
|
||||
|
||||
for(var/X in C.implants)
|
||||
var/obj/item/implant/I = X
|
||||
organs["[I.name] ([I.type])"] = I
|
||||
for(var/obj/item/implant/user_implants as anything in C.implants)
|
||||
organs["[user_implants.name] ([user_implants.type])"] = user_implants
|
||||
|
||||
var/obj/item/organ = tgui_input_list(usr, "Select organ/implant", "Organ Manipulation", organs)
|
||||
if(isnull(organ))
|
||||
|
||||
Reference in New Issue
Block a user