mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 03:55:05 +01:00
Adds summon supermatter, a new wizard spell (#21096)
* Devious intent * bam * also this * Update code/game/gamemodes/wizard/spellbook.dm Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> * now a shard * Update code/datums/spells/summon_supermatter.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * Update code/game/gamemodes/wizard/spellbook.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * improved code * log name removal * good enough * conflict * sprite by mcramon --------- Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
This commit is contained in:
@@ -545,7 +545,7 @@
|
||||
|
||||
//Makes em go mad and accumulate rads.
|
||||
for(var/mob/living/carbon/human/l in view(src, HALLUCINATION_RANGE(power))) // If they can see it without mesons on. Bad on them.
|
||||
if(!istype(l.glasses, /obj/item/clothing/glasses/meson) && !HAS_TRAIT(l, TRAIT_MESON_VISION))
|
||||
if(!istype(l.glasses, /obj/item/clothing/glasses/meson) && !HAS_TRAIT(l, TRAIT_MESON_VISION) && !HAS_TRAIT(l, SM_HALLUCINATION_IMMUNE))
|
||||
var/D = sqrt(1 / max(1, get_dist(l, src)))
|
||||
var/hallucination_amount = power * hallucination_power * D
|
||||
l.AdjustHallucinate(hallucination_amount, 0, 200 SECONDS)
|
||||
@@ -1129,6 +1129,11 @@
|
||||
targets_hit = targets_hit.Copy() //Pass by ref begone
|
||||
supermatter_zap(target, new_range, zap_str, zap_flags, targets_hit)
|
||||
|
||||
/obj/machinery/atmospherics/supermatter_crystal/proc/manual_start(amount)
|
||||
has_been_powered = TRUE
|
||||
power += amount
|
||||
message_admins("[src] has been activated and given an increase EER of [amount] at [ADMIN_JMP(src)]")
|
||||
|
||||
#undef HALLUCINATION_RANGE
|
||||
#undef GRAVITATIONAL_ANOMALY
|
||||
#undef FLUX_ANOMALY
|
||||
|
||||
Reference in New Issue
Block a user