diff --git a/src/models/RolePlugin.lua b/src/models/RolePlugin.lua index e825e87..c8bd2f1 100644 --- a/src/models/RolePlugin.lua +++ b/src/models/RolePlugin.lua @@ -1233,8 +1233,8 @@ function RolePlugin.bind(Role) end if done then update = true - self:award(data.phase_award, {log = {desc = "seaportReward", int1 = set[1].phase, int2 = set[1].id}}) - donate[id] = 1 + self:award(set[1].phase_award, {log = {desc = "seaportReward", int1 = set[1].phase, int2 = set[1].id}}) + donate[idx] = 1 end end seaport.donate = donate @@ -1323,7 +1323,7 @@ function RolePlugin.bind(Role) donate = {} } end - self:setProperty("seaport",seaport) + self:updateProperty({field = "seaport", value = seaport}) end end -- libgit2 0.21.2