Commit 5f18f4e597867bf6a7f6d78cec238bceee62bb6c
1 parent
053978b4
story
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
src/actions/RoleAction.lua
... | ... | @@ -586,6 +586,7 @@ function _M.storyBookRewardRpc(agent, data) |
586 | 586 | end |
587 | 587 | end |
588 | 588 | -- 获取奖励 |
589 | + storyStatus[storyId] = storyStatus[storyId] or {} | |
589 | 590 | storyStatus[storyId].s = -1 |
590 | 591 | role:changeUpdates({{ type = "storyB", field = storyId, value = storyStatus[storyId] }}) |
591 | 592 | local reward = role:award(storyBookData.gift, {log = {desc = "storybookReward", int1 = storyId}}) | ... | ... |