Commit 3e6433e1cff2cda21eec3373e4ce705bb6eb0a52
Merge branch 'develop' of 120.26.43.151:wasteland/server into develop
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 | 971 | funcGuide = funcGuide:setv(msg.funcType, 1) |
972 | 972 | end |
973 | 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 | 983 | else |
975 | 984 | return |
976 | 985 | end | ... | ... |