Commit ae0d3358627fa0ae5242bec7b8c39f44e63be24e

Authored by liuzujun
1 parent ea54a935

重置单一玩家 讨伐电台、代理拾荒、海港贸易 gm

Showing 1 changed file with 45 additions and 0 deletions   Show diff stats
src/actions/GmAction.lua
@@ -1027,4 +1027,49 @@ function _M.savegenius(role, pms) @@ -1027,4 +1027,49 @@ function _M.savegenius(role, pms)
1027 return "天赋点设置成功" 1027 return "天赋点设置成功"
1028 end 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 return _M 1075 return _M
1031 \ No newline at end of file 1076 \ No newline at end of file