Commit e5a2ae07ff1ac08d9ba62753993181455e137ae4
1 parent
43cc5f51
fix equip
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/models/RolePlugin.lua
... | ... | @@ -410,9 +410,9 @@ function RolePlugin.bind(Role) |
410 | 410 | equip.owner = self |
411 | 411 | equip:create() |
412 | 412 | end |
413 | - equip:updateProperty({field = "count", value = math.min(count,0)}) | |
413 | + equip:updateProperty({field = "count", value = count}) | |
414 | 414 | if isRefer then |
415 | - equip:updateProperty({field = "refer", value = math.min(equip:getProperty("refer")+count,0)}) | |
415 | + equip:updateProperty({field = "refer", value = equip:getProperty("refer")+count}) | |
416 | 416 | end |
417 | 417 | self.equipBag[equipType][equipLv] = equip |
418 | 418 | end | ... | ... |