Reflectors now reset the range of a projectile like before! (#35726)

* Reflectors now reset the range of a projectile.

* how about dem apples
This commit is contained in:
Dax Dupont
2018-02-17 20:17:11 +01:00
committed by CitadelStationBot
parent f1d33ec520
commit f31df38f83
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -65,6 +65,7 @@
var/flag = "bullet" //Defines what armor to use when it hits things. Must be set to bullet, laser, energy,or bomb
var/projectile_type = /obj/item/projectile
var/range = 50 //This will de-increment every step. When 0, it will deletze the projectile.
var/decayedRange
var/is_reflectable = FALSE // Can it be reflected or not?
//Effects
var/stun = 0
@@ -85,6 +86,7 @@
/obj/item/projectile/Initialize()
. = ..()
permutated = list()
decayedRange = range
/obj/item/projectile/proc/Range()
range--