|
20 | 20 | return FALSE |
21 | 21 | . = ..() |
22 | 22 | if(.) |
| 23 | + var/psyrank = user.psi.get_rank(PSI_ENERGISTICS) |
23 | 24 | if(istype(target)) |
24 | 25 | 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)) |
26 | 27 | return TRUE |
27 | 28 | else if(isatom(target)) |
28 | 29 | var/obj/item/stock_parts/cell/charging_cell = target.get_cell() |
29 | 30 | if(istype(charging_cell)) |
30 | 31 | 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)) |
32 | 33 | return TRUE |
33 | 34 | else |
34 | 35 | return FALSE |
|
53 | 54 | playsound(S.loc, "sparks", 50, 1) |
54 | 55 | else |
55 | 56 | 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) |
57 | 58 | s.start() |
58 | 59 | return TRUE |
59 | 60 |
|
|
67 | 68 | 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." |
68 | 69 |
|
69 | 70 | /datum/psionic_power/energistics/zorch/invoke(mob/living/user, mob/living/target, proximity, parameters) |
| 71 | + if(!user.combat_mode) |
| 72 | + return FALSE |
70 | 73 | . = ..() |
71 | 74 | if(.) |
72 | 75 | if(HAS_TRAIT(user, TRAIT_PACIFISM) && user.psi.zorch_harm) |
|
0 commit comments