mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 15:14:27 +01:00
Closer,
need to figure out inhand/on head icon states.
This commit is contained in:
@@ -53,4 +53,5 @@
|
||||
/obj/item/weapon/holder/pai
|
||||
name = "pAI"
|
||||
desc = "It's a little robot."
|
||||
icon_state = "pai"
|
||||
icon_state = "pai"
|
||||
icon_override = 'icons/mob/in-hand/paiheld.dmi'
|
||||
@@ -541,6 +541,7 @@
|
||||
//pie.status_flags |= PASSEMOTES
|
||||
held.put_in_active_hand(pie)
|
||||
pie.icon_state = "pai-[icon_state]"
|
||||
pie.icon_override = 'icons/mob/in-hand/paiheld.dmi'
|
||||
return
|
||||
|
||||
..()
|
||||
@@ -552,13 +552,14 @@
|
||||
name = "Host Bioscan"
|
||||
ram_cost = 5
|
||||
id = "bioscan"
|
||||
toggle = 0
|
||||
|
||||
|
||||
on_ui_interact(mob/living/silicon/pai/user, datum/nanoui/ui=null, force_open=1)
|
||||
|
||||
var/data[0]
|
||||
var/mob/living/held = user.loc
|
||||
|
||||
user << "held"
|
||||
if(istype(held, /mob/living))
|
||||
data["holder"] = held
|
||||
data["health"] = "[held.stat > 1 ? "dead" : "[held.health]% healthy"]"
|
||||
|
||||
Reference in New Issue
Block a user