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
d02368d3cf34ad5ca22e5e15cf3d69f04ab7b2d8
Authored by
zhouhaihai
2020-09-16 14:12:21 +0800
1 parent
0719a220
数据保护
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 @
d02368d
...
...
@@ -260,6 +260,7 @@ function RolePlugin.bind(Role)
260
260
261
261
function Role:addItem(params)
262
262
params = params or {}
263
+ params.count = math.floor(params.count or 0)
263
264
if params.itemId == ItemId.Diamond then
264
265
self:gainDiamond(params)
265
266
return
...
...