diff --git a/code/__HELPERS/experimental.dm b/code/__HELPERS/experimental.dm index 4c3b037cd48..c4986fecf24 100644 --- a/code/__HELPERS/experimental.dm +++ b/code/__HELPERS/experimental.dm @@ -124,7 +124,9 @@ var/list/masterPool = list() /* * Override this if the object variables needed to reset. * - * Example: see, code\game\objects\structures\grille.dm + * Example: see, code\game\objects\items\stacks\sheets\glass.dm + * @/obj/item/weapon/shard + * @resetVariables() */ /atom/movable proc/resetVariables() diff --git a/code/game/objects/items/stacks/sheets/glass.dm b/code/game/objects/items/stacks/sheets/glass.dm index 35303f69477..1686404378e 100644 --- a/code/game/objects/items/stacks/sheets/glass.dm +++ b/code/game/objects/items/stacks/sheets/glass.dm @@ -235,7 +235,9 @@ */ /obj/item/weapon/shard resetVariables() - ..("pixel_y", "pixel_x", "icon_state") + var/list/exclude = list("pixel_y", "pixel_x", "icon_state") + exclude += args + ..(exclude) /obj/item/weapon/shard/Bump() spawn( 0 )