Commit 756cd488adb063112df202854f0794e7e7b754a9
Merge branch 'cn/develop' of 120.26.43.151:wasteland/server into cn/develop
Showing
4 changed files
with
50 additions
and
5 deletions
Show diff stats
src/actions/GmAction.lua
... | ... | @@ -1027,4 +1027,49 @@ function _M.savegenius(role, pms) |
1027 | 1027 | return "天赋点设置成功" |
1028 | 1028 | end |
1029 | 1029 | |
1030 | +table.insert(helpDes, {"清讨伐电台", "clear_radio", "id"}) | |
1031 | +function _M.clear_radio(role, pms) | |
1032 | + local id = pms.pm1 | |
1033 | + local radioTask = role:getProperty("radioTask") | |
1034 | + if id == 0 then | |
1035 | + radioTask[id] = nil | |
1036 | + else | |
1037 | + radioTask = {} | |
1038 | + end | |
1039 | + | |
1040 | + role:updateProperty({field = "radioTask", value = radioTask}) | |
1041 | + | |
1042 | + return "成功" | |
1043 | +end | |
1044 | + | |
1045 | +table.insert(helpDes, {"清代理拾荒", "clear_adv_hang", "id"}) | |
1046 | +function _M.clear_adv_hang(role, pms) | |
1047 | + local id = pms.pm1 | |
1048 | + local task = role:getProperty("advHang") | |
1049 | + if id == 0 then | |
1050 | + task[id] = nil | |
1051 | + else | |
1052 | + task = {} | |
1053 | + end | |
1054 | + | |
1055 | + role:updateProperty({field = "advHang", value = task}) | |
1056 | + | |
1057 | + return "成功" | |
1058 | +end | |
1059 | + | |
1060 | +table.insert(helpDes, {"清海港贸易", "clear_sea", "id"}) | |
1061 | +function _M.clear_radio(role, pms) | |
1062 | + local id = pms.pm1 | |
1063 | + local task = role:getProperty("seaport") | |
1064 | + if id == 0 then | |
1065 | + task.collect[id] = nil | |
1066 | + else | |
1067 | + task.collect = {} | |
1068 | + end | |
1069 | + | |
1070 | + role:updateProperty({field = "seaport", value = task}) | |
1071 | + | |
1072 | + return "成功" | |
1073 | +end | |
1074 | + | |
1030 | 1075 | return _M |
1031 | 1076 | \ No newline at end of file | ... | ... |
src/actions/TowerAction.lua
... | ... | @@ -114,9 +114,9 @@ function _M.endBattleRpc(agent, data) |
114 | 114 | |
115 | 115 | curLevel = curLevel + 1 |
116 | 116 | reward, change = role:award(rewardStr, {log = {desc = "towerBattle", int1 = id}}) |
117 | - if towerType == 0 then | |
118 | - role:checkTaskEnter("TowerPass", {level = towerInfo.l, type = towerType + 1}) | |
119 | - end | |
117 | + --if towerType == 0 then | |
118 | + role:checkTaskEnter("TowerPass", {level = curLevel % 10000, type = towerType + 1}) | |
119 | + --end | |
120 | 120 | end |
121 | 121 | |
122 | 122 | if towerType == 0 then | ... | ... |
src/models/RoleTask.lua
... | ... | @@ -810,7 +810,7 @@ function RoleTask.bind(Role) |
810 | 810 | calTask[id] = (calTask[id] or 0) + 1 |
811 | 811 | end |
812 | 812 | elseif cfg.type == 13 then -- 挑战电波塔主塔 |
813 | - if cfg.condition2 == param1 and param2 == 1 then | |
813 | + if cfg.condition2 <= param1 and param2 == 1 then | |
814 | 814 | calTask[id] = (calTask[id] or 0) + 1 |
815 | 815 | end |
816 | 816 | end | ... | ... |