Refactors throwing (#25946)

* refactors datum/thrownthing

* cleanup

* lewc review

* calling parent doesn't do anything lmao
This commit is contained in:
chuga-git
2024-06-26 16:03:51 -05:00
committed by GitHub
parent 936d19c0a0
commit da42a1c2f6
9 changed files with 173 additions and 92 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
if(isprojectile(mover))
return projectile_hit_check(mover)
if(mover.throwing)
return (!density || horizontal || (mover.throwing.thrower == src))
return (!density || horizontal || (mover.throwing?.get_thrower() == src))
if(mover.checkpass(PASSMOB))
return 1
if(buckled == mover)