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,6 +18,7 @@ Hero.schema = { | ||
18 | rune = {"string",""}, --零件 type=id | 18 | rune = {"string",""}, --零件 type=id |
19 | faith = {"number", 0}, -- 信赖 | 19 | faith = {"number", 0}, -- 信赖 |
20 | spark = {"table", {}}, -- 火花属性 | 20 | spark = {"table", {}}, -- 火花属性 |
21 | + genius = {"string", "" }, --天赋点 4=10201 5=10201 6=10203 7=10204 | ||
21 | } | 22 | } |
22 | 23 | ||
23 | function Hero:ctor( properties ) | 24 | function Hero:ctor( properties ) |
@@ -111,6 +112,7 @@ function Hero:data() | @@ -111,6 +112,7 @@ function Hero:data() | ||
111 | rune = self:getProperty("rune"), | 112 | rune = self:getProperty("rune"), |
112 | faith = self:getProperty("faith"), | 113 | faith = self:getProperty("faith"), |
113 | spark = self:getProperty("spark"), | 114 | spark = self:getProperty("spark"), |
115 | + genius = self:getProperty("genius"), | ||
114 | } | 116 | } |
115 | end | 117 | end |
116 | 118 |