Commit 0719a220d279f0fe49628a63410034f2a9d469dd

Authored by zhouhaihai
1 parent c888fcc3

数据保护

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
src/models/RolePlugin.lua
... ... @@ -51,6 +51,7 @@ function RolePlugin.bind(Role)
51 51 end
52 52  
53 53 local function _award(self, itemId, count, params)
  54 + local count = math.floor(count)
54 55 local pms = clone(params)
55 56 local itemData = csvdb["itemCsv"][itemId]
56 57 if not itemData then -- 加一层保护
... ...