Ports Technomancer from Polaris. (#11595)

This commit is contained in:
Matt Atlas
2021-05-08 16:08:53 +02:00
committed by GitHub
parent b25fe1c963
commit a1c25ba1f9
112 changed files with 5868 additions and 29 deletions

View File

@@ -79,6 +79,7 @@
//Fired processing vars
var/fired = FALSE //Have we been fired yet
var/paused = FALSE //for suspending the projectile midair
var/reflected = FALSE
var/last_projectile_move = 0
var/last_process = 0
var/time_offset = 0
@@ -310,6 +311,8 @@
/obj/item/projectile/proc/old_style_target(atom/target, atom/source)
if(!source)
source = get_turf(src)
starting = get_turf(source)
original = target
setAngle(get_projectile_angle(source, target))
/obj/item/projectile/proc/fire(angle, atom/direct_target)
@@ -573,6 +576,9 @@
trajectory.set_angle(new_angle)
return TRUE
/obj/item/projectile/proc/redirect(x, y, starting, source)
old_style_target(locate(x, y, z), starting? get_turf(starting) : get_turf(source))
/obj/item/projectile/forceMove(atom/target)
. = ..()
if(trajectory && !trajectory_ignore_forcemove && isturf(target))

View File

@@ -427,7 +427,7 @@
/obj/item/projectile/beam/tesla/on_impact(atom/target)
. = ..()
if(isliving(target))
tesla_zap(target, 3, 5000)
tesla_zap(target, 5, 5000)
/obj/item/projectile/beam/tesla/master
damage = 15

View File

@@ -280,7 +280,7 @@
if(isanimal(target))
target.visible_message("<b>[target]</b> twitches, foaming at the mouth.")
L.apply_damage(35, TOX) //temporary until simple_mob paralysis actually works.
L.apply_damage(35, TOX) //temporary until simple_animal paralysis actually works.
..()
/* Miscellaneous */