Skip to content

Commit

Permalink
examine
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Atlas committed Jul 22, 2023
1 parent ef6e9a2 commit 3c5d153
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
11 changes: 10 additions & 1 deletion code/_onclick/hud/ability_screen_objects.dm
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,15 @@

overlays += ability_icon_state

/obj/screen/ability/Click()
/obj/screen/ability/Click(var/location, var/control, var/params)
if(!usr)
return

var/list/click_params = params2list(params)
if(click_params["shift"])
examine(usr)
return

activate()

/obj/screen/ability/MouseDrop(var/atom/A)
Expand Down Expand Up @@ -320,6 +325,10 @@
if(my_mob.client)
toggle_open(2) //forces the icons to refresh on screen

/obj/screen/ability/obj_based/psionic/examine(mob/user)
to_chat(user, SPAN_NOTICE("<font size=4>This ability is <b>[connected_power.name]</b>.</font>"))
to_chat(user, SPAN_NOTICE("[connected_power.desc]"))

/// Technomancer.
/obj/screen/ability/obj_based/technomancer
icon_state = "wiz_spell_base"
Expand Down
5 changes: 1 addition & 4 deletions code/modules/psionics/interface/ui_hub.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@
update_icon()

/obj/screen/psi/hub/Click(var/location, var/control, var/params)
var/list/click_params = params2list(params)
if(click_params["shift"])
ui_interact(owner)
return
ui_interact(owner)
update_icon()

/obj/screen/psi/hub/ui_interact(mob/user, datum/tgui/ui)
Expand Down
3 changes: 2 additions & 1 deletion html/changelogs/mattatlas-kyoushikimurasaki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ delete-after: True
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
changes:
- experiment: "Psionics have been reworked to use the Technomancer ability system. This means that you get physical ability objects in your hand to use (in hand, melee, or ranged)."
- rscadd: "Added a psionic point shop. Opened by shift-clicking your psionic hub icon. This is also usable by non-antags, but they can't buy anything: it's still useful to use it to know what your powers do and how to use them!"
- rscadd: "You can shift click psionic abilities at the top to obtain info about them."
- rscadd: "Added a psionic point shop. Opened by clicking your psionic hub icon. This is also usable by non-antags, but they can't buy anything: it's still useful to use it to know what your powers do and how to use them!"
- rscadd: "Antagonists get points usable in the psionic point shop. This varies per antag: Loners get 8, borer hosts get 3 (increased by borers with Advance Psionics)."
- tweak: "Reworked the Psi ranks. The canon ones are Psionically Sensitive (Skrell), Psionically Harmonious (exceptional Skrell born with better psionic control), Psionic Apex (unknown to everyone, really). There's also an admin-only non-canon Limitless level."
- rscadd: "Every 30 minutes, psionics will be pinged in their chat about their emotional state, which can be one from a selection. A few minutes after, the responses will be tallied together and the winning emotion will be broadcasted. Higher psionic rank means higher vote value."
Expand Down

0 comments on commit 3c5d153

Please sign in to comment.