[MIRROR] Reworks pAIs [MDB IGNORE] (#15162)

This commit is contained in:
SkyratBot
2022-07-27 19:10:14 -04:00
committed by GitHub
parent f2fd1e5962
commit 99cdbe4ce2
71 changed files with 11655 additions and 11406 deletions
@@ -78,7 +78,7 @@ GLOBAL_LIST_EMPTY(TabletMessengers) // a list of all active messengers, similar
var/datum/picture/saved_image // the saved image used for messaging purpose like come on dude
/// Stored pAI in the computer
var/obj/item/paicard/inserted_pai = null
var/obj/item/pai_card/inserted_pai = null
/obj/item/modular_computer/Initialize(mapload)
. = ..()
@@ -661,11 +661,10 @@ GLOBAL_LIST_EMPTY(TabletMessengers) // a list of all active messengers, similar
return
// Insert a PAI.
if(istype(attacking_item, /obj/item/paicard) && !inserted_pai)
if(istype(attacking_item, /obj/item/pai_card) && !inserted_pai)
if(!user.transferItemToLoc(attacking_item, src))
return
inserted_pai = attacking_item
inserted_pai.slotted = TRUE
to_chat(user, span_notice("You slot \the [attacking_item] into [src]."))
return
@@ -222,7 +222,6 @@
if("eject")
usr.put_in_hands(inserted_pai)
to_chat(usr, span_notice("You remove [inserted_pai] from the [name]."))
inserted_pai.slotted = FALSE
inserted_pai = null
if("interact")
inserted_pai.attack_self(usr)