mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
Fix admin pie smite (#4284)
## About The Pull Request The pie smite was getting the splat component on the pie and then calling the splat proc directly, which is kind of gross but also it was passing the wrong value for one of the arguments (it passed the splat component for the first argument when it should have been passing the pie) -- changed the code to instead send the signal that triggers the proc cause that's cleaner and also makes it actually work. Also move the file to the bubber folder cause why not ## Why It's Good For The Game Fixes #4282 ## Proof Of Testing <details> <summary>Screenshots/Videos</summary> <img width="1524" height="885" alt="image" src="https://github.com/user-attachments/assets/1ab337d5-d7b9-4880-ad4e-dee452d2213a" /> </details> ## Changelog 🆑 fix: fixed admin pie smite not working /🆑
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
//Drops a pie into the face of your victim
|
||||
/datum/smite/pie
|
||||
name = "Pie"
|
||||
|
||||
/datum/smite/pie/effect(client/user, mob/living/target)
|
||||
. = ..()
|
||||
var/obj/item/food/pie/cream/nostun/creamy = new(get_turf(target))
|
||||
var/datum/component/splat/splat_handler = creamy.GetComponent(/datum/component/splat)
|
||||
splat_handler.splat(splat_handler, target)
|
||||
Reference in New Issue
Block a user