Commit 966034cae1d84455d2ee2cc3ee7d383fb11b33f0

Authored by zhouhaihai
1 parent 3c8a6b8a

获取碎片零件gm

Showing 1 changed file with 12 additions and 0 deletions   Show diff stats
src/actions/GmAction.lua
@@ -52,6 +52,18 @@ function _M.get(role, pms) @@ -52,6 +52,18 @@ function _M.get(role, pms)
52 role:award({[itemId] = 100}) 52 role:award({[itemId] = 100})
53 end 53 end
54 end 54 end
  55 + elseif pms.pm1 == "RUNE" then
  56 + for itemId = 1000 , 2000 do
  57 + if csvdb["itemCsv"][itemId] then
  58 + role:award({[itemId] = 100})
  59 + end
  60 + end
  61 + elseif pms.pm1 == "FRAG" then
  62 + for itemId = 100 , 400 do
  63 + if csvdb["itemCsv"][itemId] then
  64 + role:award({[itemId] = 100})
  65 + end
  66 + end
55 else 67 else
56 local itemId = tonum(pms.pm1) 68 local itemId = tonum(pms.pm1)
57 if not csvdb["itemCsv"][itemId] then 69 if not csvdb["itemCsv"][itemId] then