mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-04 14:01:22 +00:00
[MIRROR] PAI overlay on PDAs [MDB IGNORE] (#17898)
* PAI overlay on PDAs * conflicts2 Co-authored-by: texan-down-under <73374039+etherware-novice@users.noreply.github.com> Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com>
This commit is contained in:
@@ -204,6 +204,7 @@ GLOBAL_LIST_EMPTY(TabletMessengers) // a list of all active messengers, similar
|
||||
user.put_in_hands(inserted_pai)
|
||||
balloon_alert(user, "removed pAI")
|
||||
inserted_pai = null
|
||||
update_appearance(UPDATE_ICON)
|
||||
return TRUE
|
||||
|
||||
// Gets IDs/access levels from card slot. Would be useful when/if PDAs would become modular PCs. //guess what
|
||||
@@ -414,6 +415,7 @@ GLOBAL_LIST_EMPTY(TabletMessengers) // a list of all active messengers, similar
|
||||
inserted_pai = null
|
||||
if(inserted_disk == gone)
|
||||
inserted_disk = null
|
||||
update_appearance(UPDATE_ICON)
|
||||
return ..()
|
||||
|
||||
// On-click handling. Turns on the computer if it's off and opens the GUI.
|
||||
@@ -723,6 +725,7 @@ GLOBAL_LIST_EMPTY(TabletMessengers) // a list of all active messengers, similar
|
||||
return
|
||||
inserted_pai = attacking_item
|
||||
balloon_alert(user, "inserted pai")
|
||||
update_appearance(UPDATE_ICON)
|
||||
return
|
||||
|
||||
if(istype(attacking_item, /obj/item/stock_parts/cell))
|
||||
|
||||
@@ -192,6 +192,7 @@
|
||||
usr.put_in_hands(inserted_pai)
|
||||
to_chat(usr, span_notice("You remove [inserted_pai] from the [name]."))
|
||||
inserted_pai = null
|
||||
update_appearance(UPDATE_ICON)
|
||||
if("interact")
|
||||
inserted_pai.attack_self(usr)
|
||||
return UI_UPDATE
|
||||
|
||||
@@ -75,6 +75,8 @@
|
||||
. += mutable_appearance(initial(icon), "id_overlay")
|
||||
if(light_on)
|
||||
. += mutable_appearance(initial(icon), "light_overlay")
|
||||
if(inserted_pai)
|
||||
. += mutable_appearance(initial(icon), "pai_inserted")
|
||||
|
||||
/obj/item/modular_computer/pda/attack_ai(mob/user)
|
||||
to_chat(user, span_notice("It doesn't feel right to snoop around like that..."))
|
||||
|
||||
Reference in New Issue
Block a user