mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 19:44:58 +01:00
Adds screentips for scanning raptors (#95421)
## About The Pull Request This adds screentips for scanning raptors - both with the PDA RaptorDex app, and the standalone handheld version. Also fixed a bug where the "scanned" balloon alert didn't properly appear for the, bc it'd try to display the balloon alert to the raptor... <img width="329" height="419" alt="2026-03-15 (1773602977)" src="https://github.com/user-attachments/assets/8a16f5c4-f65b-4931-ac0b-7c165f4781de" /> <img width="285" height="349" alt="2026-03-15 (1773603014)" src="https://github.com/user-attachments/assets/827e2e1a-5243-4763-8532-b4fe2246c745" /> ## Why It's Good For The Game I initially didn't realize that you had to _right click_ to scan raptors with the PDA app, so like, I decided to add screentips to make that clearer. also bugfix good. ## Changelog 🆑 qol: Added screentips for scanning raptors with the RaptorDex PDA app and standalone handheld RaptorDex. fix: Fixed the handheld RaptorDex not showing the "scanned" balloon alert when scanning a raptor. /🆑
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
/// Raptor scan data we have stored
|
||||
var/list/scan_data = list("raptor_scan" = FALSE)
|
||||
|
||||
/obj/item/raptor_dex/Initialize(mapload)
|
||||
. = ..()
|
||||
register_item_context()
|
||||
|
||||
/obj/item/raptor_dex/ui_interact(mob/user, datum/tgui/ui)
|
||||
ui = SStgui.try_update_ui(user, src, ui)
|
||||
if(!ui)
|
||||
@@ -61,6 +65,12 @@
|
||||
scan_data["inherited_traits"] += GLOB.raptor_inherit_traits[index]
|
||||
|
||||
playsound(src, 'sound/mobs/non-humanoids/orbie/orbie_send_out.ogg', 20)
|
||||
balloon_alert(my_raptor, "scanned")
|
||||
my_raptor.balloon_alert(user, "scanned")
|
||||
ui_interact(user)
|
||||
return ITEM_INTERACT_SUCCESS
|
||||
|
||||
/obj/item/raptor_dex/add_item_context(obj/item/source, list/context, atom/target, mob/living/user)
|
||||
if(!istype(target, /mob/living/basic/raptor))
|
||||
return NONE
|
||||
context[SCREENTIP_CONTEXT_LMB] = "Scan Raptor"
|
||||
return CONTEXTUAL_SCREENTIP_SET
|
||||
|
||||
Reference in New Issue
Block a user