GITLAB
wasteland
/
server
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Issues
0
Merge Requests
0
Wiki
Download as
Email Patches
Plain Diff
Browse Code »
Commit
0719a220d279f0fe49628a63410034f2a9d469dd
Authored by
zhouhaihai
2020-09-16 14:10:35 +0800
1 parent
c888fcc3
数据保护
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
src/models/RolePlugin.lua
Inline
Side-by-side
src/models/RolePlugin.lua
Wrap text
Show/Hide comments
View file @
0719a22
...
...
@@ -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 -- 加一层保护
...
...