Commit aca85b6f5dd32041243171d502f991e633849a4e
1 parent
5c6f50cb
fix: 额外宝藏 资源值字段修改treasureExtraBase->treasureBaseExtra
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/models/DailyPlugin.lua
| ... | ... | @@ -371,14 +371,14 @@ function DailyPlugin.bind(Daily) |
| 371 | 371 | --宝藏功能优化——增加"发现宝藏"功能 |
| 372 | 372 | function Daily:buyTreasureExtra(treasureList) |
| 373 | 373 | local boughtTreasure = {} |
| 374 | - local treasureBase = self:getProperty("treasureExtraBase") | |
| 374 | + local treasureBase = self:getProperty("treasureBaseExtra") | |
| 375 | 375 | for id, val in pairs(treasureList) do |
| 376 | 376 | if treasureBase >= val.treasure_value then |
| 377 | 377 | boughtTreasure[id] = val |
| 378 | 378 | treasureBase = treasureBase - val.treasure_value |
| 379 | 379 | end |
| 380 | 380 | end |
| 381 | - self:updateProperty({field = "treasureExtraBase", value = treasureBase}) | |
| 381 | + self:updateProperty({field = "treasureBaseExtra", value = treasureBase}) | |
| 382 | 382 | return boughtTreasure |
| 383 | 383 | end |
| 384 | 384 | ... | ... |