Commit ef70cd7563dc315843a9876ba47b9388a070cb19

Authored by zhouhaihai
2 parents c4ca1352 e6f9669a

Merge branch 'tr/bugfix' into tr/publish/preview

* tr/bugfix:
  铭文属性问题
Showing 1 changed file with 18 additions and 0 deletions   Show diff stats
src/models/RoleChangeStruct.lua
... ... @@ -48,11 +48,29 @@ local bugFixSuduku = createVersionFunc(VersionType.DoOnly, function(role, params
48 48 end
49 49 end)
50 50  
  51 +local bugFixRune = createVersionFunc(VersionType.DoOnly, function(role, params)
  52 + local had = false
  53 + for id, rune in pairs(role.runeBag) do
  54 + if math.floor(rune:getProperty("id") / 1000) == 16 then
  55 + local attrs = rune:getProperty("attrs")
  56 + local atk = attrs:getv(2, 0)
  57 + if atk ~= 0 then
  58 + attrs = attrs:delk(2):setv(1, atk)
  59 + had = true
  60 + rune:setProperty("attrs",attrs)
  61 + end
  62 + end
  63 + end
  64 + if had then
  65 + -- 补偿
  66 + end
  67 +end)
51 68 ---------------------版本方法 end ----------------------
52 69  
53 70 -- version 罗列start
54 71 local versionList = {} -- version 列表
55 72 versionList[1] = {bugFixSuduku, {}}
  73 +versionList[2] = {bugFixRune, {}}
56 74 -- versionList[2] = {clearActivity, {5, 7}}
57 75 -- versionList[3] = {changeStructF, "test1"}
58 76 -- versionList[4] = {changeStructF, "test2"}
... ...