Commit 06562145fea2cfa339593b8854795e77dadf6391
1 parent
659fe200
英雄模块增加一个字段
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
src/models/Hero.lua
| ... | ... | @@ -18,6 +18,7 @@ Hero.schema = { |
| 18 | 18 | rune = {"string",""}, --零件 type=id |
| 19 | 19 | faith = {"number", 0}, -- 信赖 |
| 20 | 20 | spark = {"table", {}}, -- 火花属性 |
| 21 | + genius = {"string", "" }, --天赋点 4=10201 5=10201 6=10203 7=10204 | |
| 21 | 22 | } |
| 22 | 23 | |
| 23 | 24 | function Hero:ctor( properties ) |
| ... | ... | @@ -111,6 +112,7 @@ function Hero:data() |
| 111 | 112 | rune = self:getProperty("rune"), |
| 112 | 113 | faith = self:getProperty("faith"), |
| 113 | 114 | spark = self:getProperty("spark"), |
| 115 | + genius = self:getProperty("genius"), | |
| 114 | 116 | } |
| 115 | 117 | end |
| 116 | 118 | ... | ... |