local A=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local v=A:WaitForChild("\099\111\109\109\111\110")local Y=A:WaitForChild("\108\105\098")local i=v:WaitForChild("\111\098\106\101\099\116")local C=require(Y:WaitForChild("\080\105\122\122\097\065\108\112\097\099\097"))local R=require(i:WaitForChild("\069\113\117\105\112\109\101\110\116\082\101\099\111\110\099\105\108\101\114"))local M=C.GameModule:extend("\080\108\097\121\101\114\069\113\117\105\112\109\101\110\116")function M.onStore(v,A)v.equipmentReconciler=R.new(v.core,A)end function M.postInit(A)local v=A.core:getModule("\083\116\111\114\101\067\111\110\116\097\105\110\101\114");(v:getStore()):andThen(function(v)A:onStore(v)end)end return M
-- handles equipment on the server, notifies clients of equipment changes

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local common = ReplicatedStorage:WaitForChild("common")
local lib = ReplicatedStorage:WaitForChild("lib")
local object = common:WaitForChild("object")

local PizzaAlpaca = require(lib:WaitForChild("PizzaAlpaca"))
local EquipmentReconciler = require(object:WaitForChild("EquipmentReconciler"))

local PlayerEquipment = PizzaAlpaca.GameModule:extend("PlayerEquipment")

function PlayerEquipment:onStore(store)
    self.equipmentReconciler = EquipmentReconciler.new(self.core,store)
end

function PlayerEquipment:postInit()
    local storeContainer = self.core:getModule("StoreContainer")
    storeContainer:getStore():andThen(function(newStore)
        self:onStore(newStore)
    end)
end

return PlayerEquipment