Commit e26989ce1f464ee8d137d52536481a968a0aae50
1 parent
2ee779d1
增加其他的引导记录
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
src/actions/RoleAction.lua
| @@ -971,6 +971,15 @@ function _M.guideRpc(agent, data) | @@ -971,6 +971,15 @@ function _M.guideRpc(agent, data) | ||
| 971 | funcGuide = funcGuide:setv(msg.funcType, 1) | 971 | funcGuide = funcGuide:setv(msg.funcType, 1) |
| 972 | end | 972 | end |
| 973 | role:updateProperty({field = "funcGuide", value = funcGuide}) | 973 | role:updateProperty({field = "funcGuide", value = funcGuide}) |
| 974 | + elseif cmdType == 3 then | ||
| 975 | + -- 弱引导 | ||
| 976 | + if msg.funcType then | ||
| 977 | + local value = msg.value or 1 | ||
| 978 | + for _, funcIdx in pairs(msg.funcType:toArray(true,"=")) do | ||
| 979 | + funcGuide = funcGuide:setv(funcIdx, value) | ||
| 980 | + end | ||
| 981 | + role:updateProperty({field = "funcGuide", value = funcGuide}) | ||
| 982 | + end | ||
| 974 | else | 983 | else |
| 975 | return | 984 | return |
| 976 | end | 985 | end |