mirror of
https://github.com/oshima-studios/OshimaGameModule.git
synced 2025-04-25 21:39:34 +08:00
将吸血加入治疗
This commit is contained in:
parent
1433706013
commit
5a503f8fc6
@ -53,8 +53,7 @@ namespace Oshima.FunGame.OshimaModules.Skills
|
||||
if (character == Skill.Character && damageResult != DamageResult.Evaded && character.HP < character.MaxHP)
|
||||
{
|
||||
double 实际吸血 = 吸血 * damage;
|
||||
character.HP += 实际吸血;
|
||||
WriteLine($"[ {character} ] 回复了 {实际吸血:0.##} 点生命值!");
|
||||
HealToTarget(character, character, 实际吸血);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
using Milimoe.FunGame.Core.Entity;
|
||||
using Milimoe.FunGame.Core.Interface.Entity;
|
||||
using Milimoe.FunGame.Core.Library.Constant;
|
||||
|
||||
namespace Oshima.FunGame.OshimaModules.Skills
|
||||
@ -61,8 +62,7 @@ namespace Oshima.FunGame.OshimaModules.Skills
|
||||
if (caster.PrimaryAttribute == PrimaryAttribute.STR)
|
||||
{
|
||||
double 回复的生命 = 生命值回复 * caster.MaxHP;
|
||||
caster.HP += 回复的生命;
|
||||
WriteLine($"[ {caster} ] 回复了 {回复的生命:0.##} 点生命值!");
|
||||
HealToTarget(caster, caster, 回复的生命);
|
||||
}
|
||||
else if (caster.PrimaryAttribute == PrimaryAttribute.INT)
|
||||
{
|
||||
|
@ -33,8 +33,7 @@ namespace Oshima.FunGame.OshimaModules.Skills
|
||||
if (character == Skill.Character && damageResult != DamageResult.Evaded && character.HP < character.MaxHP)
|
||||
{
|
||||
double 实际吸血 = 0.4 * damage;
|
||||
character.HP += 实际吸血;
|
||||
WriteLine($"[ {character} ] 回复了 {实际吸血:0.##} 点生命值!");
|
||||
HealToTarget(character, character, 实际吸血);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user