mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Beanbag shot now throws a tile. Increases the spread on rubbershot / lasershot / weakbuckshot (#21501)
* Beanbag shot now throws a tile. Increases the spread on rubbershot / lasershot / weakbuckshot * Apply suggestions from code review Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> * makes it compile, uses starting. --------- Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
This commit is contained in:
co-authored by
Contrabang
parent
92db3304e5
commit
bcce813e0a
@@ -12,6 +12,14 @@
|
||||
damage = 5
|
||||
stamina = 40
|
||||
|
||||
/obj/item/projectile/bullet/weakbullet/on_hit(atom/target, blocked = 0)
|
||||
. = ..()
|
||||
if(isliving(target))
|
||||
var/mob/living/L = target
|
||||
if(L.move_resist < INFINITY)
|
||||
var/atom/throw_target = get_edge_target_turf(L, get_dir(src, get_step_away(L, starting)))
|
||||
L.throw_at(throw_target, 1, 2)
|
||||
|
||||
/obj/item/projectile/bullet/weakbullet/booze
|
||||
|
||||
/obj/item/projectile/bullet/weakbullet/booze/on_hit(atom/target, blocked = 0)
|
||||
|
||||
Reference in New Issue
Block a user