Commit fb73effd5c48c065c8be0ed36702cd8b4e0537b6
1 parent
37b85522
英雄初始觉醒等级从GD取
Showing
1 changed file
with
1 additions
and
9 deletions
Show diff stats
src/models/RolePlugin.lua
@@ -398,22 +398,14 @@ function RolePlugin.bind(Role) | @@ -398,22 +398,14 @@ function RolePlugin.bind(Role) | ||
398 | if not unitData then return false end | 398 | if not unitData then return false end |
399 | 399 | ||
400 | local heroId = tonum(redisproxy:hincrby(string.format(R_INCR, roleId), "hero", 1)) | 400 | local heroId = tonum(redisproxy:hincrby(string.format(R_INCR, roleId), "hero", 1)) |
401 | - | ||
402 | 401 | ||
403 | redisproxy:sadd(string.format(R_HEROS, roleId), heroId) | 402 | redisproxy:sadd(string.format(R_HEROS, roleId), heroId) |
404 | 403 | ||
405 | - local wakeL = 1 | ||
406 | - if unitData.rare == 3 then | ||
407 | - wakeL = 2 | ||
408 | - elseif unitData.rare == 4 then | ||
409 | - wakeL = 3 | ||
410 | - end | ||
411 | - | ||
412 | local heroInfo = { | 404 | local heroInfo = { |
413 | key = string.format(R_HERO, roleId, heroId), | 405 | key = string.format(R_HERO, roleId, heroId), |
414 | id = heroId, | 406 | id = heroId, |
415 | type= heroType, | 407 | type= heroType, |
416 | - wakeL = wakeL, | 408 | + wakeL = globalCsv.unit_wake_initLevel[unitData.rare], |
417 | } | 409 | } |
418 | 410 | ||
419 | local newHero = require("models.Hero").new(heroInfo) | 411 | local newHero = require("models.Hero").new(heroInfo) |