Laserpointer scaling fix (#45860)

h
This commit is contained in:
81Denton
2019-08-12 20:29:42 -07:00
committed by Rob Bailey
parent 0541ff4b15
commit 24b21c19e2
@@ -13,7 +13,7 @@
var/turf/pointer_loc
var/energy = 5
var/max_energy = 5
var/effectchance = 33
var/effectchance = 25
var/recharging = 0
var/recharge_locked = FALSE
var/obj/item/stock_parts/micro_laser/diode //used for upgrading!
@@ -137,7 +137,7 @@
continue
if(user.mobility_flags & MOBILITY_STAND)
H.setDir(get_dir(H,targloc)) // kitty always looks at the light
if(prob(effectchance))
if(prob(effectchance * diode.rating))
H.visible_message("<span class='warning'>[H] makes a grab for the light!</span>","<span class='userdanger'>LIGHT!</span>")
H.Move(targloc)
log_combat(user, H, "moved with a laser pointer",src)
@@ -148,7 +148,7 @@
//cats!
for(var/mob/living/simple_animal/pet/cat/C in view(1,targloc))
if(prob(50))
if(prob(effectchance * diode.rating))
C.visible_message("<span class='notice'>[C] pounces on the light!</span>","<span class='warning'>LIGHT!</span>")
C.Move(targloc)
C.set_resting(TRUE, FALSE)