Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit c67c528

Browse files
committed
fixed
1 parent c02376b commit c67c528

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

code/modules/psionics/faculties/_power.dm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
if(user_rank < min_rank)
3333
return FALSE
3434

35+
if(isitem(target))//don't invoke if we're clicking in our inventory
36+
var/obj/item/thing = target
37+
if(thing in user.get_all_contents())
38+
return FALSE
39+
3540
if(cost && !user.psi.spend_power(cost, heat))
3641
return FALSE
3742

code/modules/psionics/faculties/energistics.dm

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,16 @@
2020
return FALSE
2121
. = ..()
2222
if(.)
23+
var/psyrank = user.psi.get_rank(PSI_ENERGISTICS)
2324
if(istype(target))
2425
user.visible_message(span_danger("\The [user] sends a jolt of electricity arcing into \the [target]!"))
25-
target.electrocute_act(rand(15,45), user, 1, user.zone_selected, stun = (user.psi.get_rank(PSI_ENERGISTICS) >= PSI_RANK_PARAMOUNT))
26+
target.electrocute_act(rand(psyrank * 5, psyrank * 10), user, 1, user.zone_selected, stun = (psyrank >= PSI_RANK_PARAMOUNT))
2627
return TRUE
2728
else if(isatom(target))
2829
var/obj/item/stock_parts/cell/charging_cell = target.get_cell()
2930
if(istype(charging_cell))
3031
user.visible_message(span_danger("\The [user] sends a jolt of electricity arcing into \the [target], charging it!"))
31-
charging_cell.give(rand(15,45))
32+
charging_cell.give(rand(psyrank * 5, psyrank * 10))
3233
return TRUE
3334
else
3435
return FALSE
@@ -53,7 +54,7 @@
5354
playsound(S.loc, "sparks", 50, 1)
5455
else
5556
var/datum/effect_system/spark_spread/s = new /datum/effect_system/spark_spread
56-
s.set_up(5, 1, target)
57+
s.set_up(user.psi.get_rank(PSI_ENERGISTICS), 1, target)
5758
s.start()
5859
return TRUE
5960

@@ -67,6 +68,8 @@
6768
use_description = "Activate the power with the 'use' key (initially bound to Z) in an empty hand, then use this ranged laser attack with combat mode on. Your mastery of Energistics will determine how powerful the laser is. Be wary of overuse, and try not to fry your own brain."
6869

6970
/datum/psionic_power/energistics/zorch/invoke(mob/living/user, mob/living/target, proximity, parameters)
71+
if(!user.combat_mode)
72+
return FALSE
7073
. = ..()
7174
if(.)
7275
if(HAS_TRAIT(user, TRAIT_PACIFISM) && user.psi.zorch_harm)

yogstation/code/game/objects/items/stacks/sheets/nullspace_crystals.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
if(istype(I, /obj/machinery/psionic_awakener))
1212
var/obj/machinery/psionic_awakener/cart = I
1313
cart.nullspace_dust += dust
14-
to_chat(user, span_notice("You force the nullspace crystal into the psionic awakener's crystal port, you can hear a soft grinding sound."))
14+
to_chat(user, span_notice("You force the [name] into the psionic awakener's crystal port, you can hear a soft grinding sound."))
1515
qdel(src)
1616

1717
/obj/item/nullspace_crystal/brilliant

0 commit comments

Comments
 (0)