mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 04:57:57 +01:00
Refactor janicart to be subtype of mop bucket (#71094)
## About The Pull Request Fixes #41123 This gives mop buckets the same behavior as janicarts. This means it inherits the same hotkeys, context screentips, etc. Other niche changes: - Fix reagent containers playing attack animation when transferring reagents to mob bucket - Fix syringes and droppers not updating the appearance of target when used - Regular mop bucket has the same RMB hotkey as janicart for wetting mop ## Why It's Good For The Game One less bug off tracker. Better consistency with code. ## Changelog 🆑 fix: Fix reagent containers playing attack animation when transferring reagents to mob bucket fix: Fix syringes and droppers not updating the appearance of target when used qol: Regular mop bucket has the same RMB hotkey as janicart for wetting mop refactor: Refactor janicart to be subtype of mop bucket /🆑 Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
@@ -277,8 +277,8 @@
|
||||
var/obj/item/mop/wet_mop = custodial_tools
|
||||
tool_name = "[wet_mop.reagents.total_volume ? "Wet" : "Dry"] [wet_mop.name]"
|
||||
|
||||
if(istype(custodial_tools, /obj/structure/janitorialcart))
|
||||
var/obj/structure/janitorialcart/janicart = custodial_tools
|
||||
if(istype(custodial_tools, /obj/structure/mop_bucket/janitorialcart))
|
||||
var/obj/structure/mop_bucket/janitorialcart/janicart = custodial_tools
|
||||
tool_name = "[janicart.name] - Water level: [janicart.reagents.total_volume] / [janicart.reagents.maximum_volume]"
|
||||
|
||||
if(istype(custodial_tools, /mob/living/simple_animal/bot/cleanbot))
|
||||
|
||||
Reference in New Issue
Block a user