Refactors preparePixelProjectile (#25567)

* preparePixelProjectile now just takes a target and source atom as parameters

* remove commented out code

* ahem

* hopefully fixes null target nonsense in colossus

* those who cannot remember the past are condemned to repeat It

* i just woke up in a cold sweat at 5am in realization

* reverts back to client-view based firing if source is a mob
This commit is contained in:
chuga-git
2024-06-28 18:12:42 +00:00
committed by GitHub
parent 4f3f845e16
commit a423a008e8
14 changed files with 148 additions and 82 deletions
@@ -119,7 +119,8 @@
for(var/t in trophies)
var/obj/item/crusher_trophy/T = t
T.on_projectile_fire(D, user)
D.preparePixelProjectile(target, get_turf(target), user, clickparams)
var/modifiers = params2list(clickparams)
D.preparePixelProjectile(target, user, modifiers)
D.firer = user
D.firer_source_atom = src
D.hammer_synced = src