mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 00:55:20 +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:
@@ -61,3 +61,22 @@
|
||||
|
||||
/datum/computer_file/program/raptordex/ui_data(mob/user)
|
||||
return scan_data
|
||||
|
||||
/datum/computer_file/program/raptordex/on_made_active_program(mob/user)
|
||||
RegisterSignal(computer, COMSIG_ITEM_REQUESTING_CONTEXT_FOR_TARGET, PROC_REF(add_item_context))
|
||||
computer.item_flags |= ITEM_HAS_CONTEXTUAL_SCREENTIPS
|
||||
|
||||
/datum/computer_file/program/raptordex/background_program(mob/user)
|
||||
. = ..()
|
||||
UnregisterSignal(computer, COMSIG_ITEM_REQUESTING_CONTEXT_FOR_TARGET)
|
||||
|
||||
/datum/computer_file/program/raptordex/kill_program(mob/user)
|
||||
. = ..()
|
||||
UnregisterSignal(computer, COMSIG_ITEM_REQUESTING_CONTEXT_FOR_TARGET)
|
||||
|
||||
/datum/computer_file/program/raptordex/proc/add_item_context(obj/item/source, list/context, atom/target, mob/living/user)
|
||||
SIGNAL_HANDLER
|
||||
if(!istype(target, /mob/living/basic/raptor))
|
||||
return NONE
|
||||
context[SCREENTIP_CONTEXT_RMB] = "Scan Raptor"
|
||||
return CONTEXTUAL_SCREENTIP_SET
|
||||
|
||||
Reference in New Issue
Block a user