Commit 040c6558c1190e8b0597089c0d92c4484eea909a
1 parent
ee25cec6
体力改为mp
Showing
3 changed files
with
5 additions
and
7 deletions
Show diff stats
src/adv/Adv.lua
@@ -110,7 +110,7 @@ local function randomAdvMap(role, chapterId, level, notNotify) | @@ -110,7 +110,7 @@ local function randomAdvMap(role, chapterId, level, notNotify) | ||
110 | local lastMapId = advInfo.mapId --非同一层不连续随出同一张类似的地图 | 110 | local lastMapId = advInfo.mapId --非同一层不连续随出同一张类似的地图 |
111 | local lastChapterId = advInfo.chapter | 111 | local lastChapterId = advInfo.chapter |
112 | local lastScore = advInfo.score or {} -- 分数 | 112 | local lastScore = advInfo.score or {} -- 分数 |
113 | - local power = advInfo.power or 100 --体力 | 113 | + local power = advInfo.power or 100 --MP |
114 | 114 | ||
115 | local pool = {} | 115 | local pool = {} |
116 | for _, mapId in ipairs(raw_pool) do | 116 | for _, mapId in ipairs(raw_pool) do |
@@ -981,6 +981,9 @@ function Adv:useSpecialSkill(skillId) | @@ -981,6 +981,9 @@ function Adv:useSpecialSkill(skillId) | ||
981 | end | 981 | end |
982 | if not skillLevel or not csvdb["adv_skill_specialCsv"][skillId][skillLevel] then return end | 982 | if not skillLevel or not csvdb["adv_skill_specialCsv"][skillId][skillLevel] then return end |
983 | local skillData = csvdb["adv_skill_specialCsv"][skillId][skillLevel] | 983 | local skillData = csvdb["adv_skill_specialCsv"][skillId][skillLevel] |
984 | + --cost | ||
985 | + if self.advInfo.power < skillData.cost then return end | ||
986 | + self.advInfo.power = self.advInfo.power - skillData.cost | ||
984 | local enemy = self.battle.enemy | 987 | local enemy = self.battle.enemy |
985 | self.battle.player:addSpecialSkill(skillId, skillLevel, enemy) | 988 | self.battle.player:addSpecialSkill(skillId, skillLevel, enemy) |
986 | return true | 989 | return true |
src/adv/AdvBattle.lua
@@ -204,11 +204,6 @@ function Battle:afterRound() | @@ -204,11 +204,6 @@ function Battle:afterRound() | ||
204 | end | 204 | end |
205 | end | 205 | end |
206 | 206 | ||
207 | - if self.adv.advInfo.power > 0 then | ||
208 | - self.adv:changePower(-1) | ||
209 | - else | ||
210 | - self.player:hurt(self.player.hpMax / 10, nil, {hurtType = 4}) | ||
211 | - end | ||
212 | if self.player.isDead then | 207 | if self.player.isDead then |
213 | self.adv:over(false) | 208 | self.adv:over(false) |
214 | end | 209 | end |
src/adv/AdvBuff.lua
@@ -15,7 +15,7 @@ Buff.IMMNUE_BUFF = 11 -- 免疫buff | @@ -15,7 +15,7 @@ Buff.IMMNUE_BUFF = 11 -- 免疫buff | ||
15 | Buff.CLEAR_BUFF = 12 -- 清除buff | 15 | Buff.CLEAR_BUFF = 12 -- 清除buff |
16 | Buff.CANT_SKILL = 13 -- 禁止技能 | 16 | Buff.CANT_SKILL = 13 -- 禁止技能 |
17 | Buff.OPEN_BLOCK = 14 -- 翻开格子(每回合) | 17 | Buff.OPEN_BLOCK = 14 -- 翻开格子(每回合) |
18 | -Buff.POWER_CHANGE = 15 -- 体力变化(每回合) | 18 | +Buff.POWER_CHANGE = 15 -- MP变化(每回合) |
19 | 19 | ||
20 | --角色一些属性的变化 | 20 | --角色一些属性的变化 |
21 | local function commonAttr(_Buff, attrName) | 21 | local function commonAttr(_Buff, attrName) |