Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Grasscutter
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
ziqian zhang
Grasscutter
Commits
e3e917ef
Commit
e3e917ef
authored
3 years ago
by
Luke H-W
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1384 from Paimon2022/development_20220626_2
Fix healing abilities for Q skill of Hu Tao
parents
541c38b7
46916b82
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/emu/grasscutter/game/ability/HealAbilityManager.java
+10
-2
10 additions, 2 deletions
...java/emu/grasscutter/game/ability/HealAbilityManager.java
with
10 additions
and
2 deletions
src/main/java/emu/grasscutter/game/ability/HealAbilityManager.java
+
10
−
2
View file @
e3e917ef
...
@@ -98,9 +98,10 @@ public class HealAbilityManager {
...
@@ -98,9 +98,10 @@ public class HealAbilityManager {
healDataAvatarList
.
add
(
new
HealDataAvatar
(
10000032
,
"Bennett"
,
0
).
addHealData
(
"Q"
,
"HealMaxHpRatio"
,
"HealConst"
,
false
));
healDataAvatarList
.
add
(
new
HealDataAvatar
(
10000032
,
"Bennett"
,
0
).
addHealData
(
"Q"
,
"HealMaxHpRatio"
,
"HealConst"
,
false
));
healDataAvatarList
.
add
(
new
HealDataAvatar
(
10000039
,
"Diona"
,
0
).
addHealData
(
"Q"
,
"HealHPRatio"
,
"HealHP_Const"
,
false
));
healDataAvatarList
.
add
(
new
HealDataAvatar
(
10000039
,
"Diona"
,
0
).
addHealData
(
"Q"
,
"HealHPRatio"
,
"HealHP_Const"
,
false
));
healDataAvatarList
.
add
(
new
HealDataAvatar
(
10000053
,
"Sayu"
,
1
).
addHealData
(
"Q"
,
"Constellation_6_Damage"
,
"Heal_BaseAmount"
,
true
).
addHealData
(
"Q"
,
"Heal_AttackRatio"
,
"Constellation_6_Heal"
,
true
));
healDataAvatarList
.
add
(
new
HealDataAvatar
(
10000053
,
"Sayu"
,
1
).
addHealData
(
"Q"
,
"Constellation_6_Damage"
,
"Heal_BaseAmount"
,
true
).
addHealData
(
"Q"
,
"Heal_AttackRatio"
,
"Constellation_6_Heal"
,
true
));
healDataAvatarList
.
add
(
new
HealDataAvatar
(
10000014
,
"Barbara"
,
0
).
addHealData
(
"E"
,
"HealHPOnAdded"
,
"HealHPOnAdded_Const"
,
true
).
addHealData
(
"E"
,
"HealHP_OnHittingOthers"
,
"HealHP_Const_OnHittingOthers"
,
true
).
addHealData
(
"Q"
,
"Avatar_Barbara_IdolHeal"
,
0.374f
,
4660
,
true
));
healDataAvatarList
.
add
(
new
HealDataAvatar
(
10000014
,
"Barbara"
,
0
).
addHealData
(
"E"
,
"HealHPOnAdded"
,
"HealHPOnAdded_Const"
,
true
).
addHealData
(
"E"
,
"HealHP_OnHittingOthers"
,
"HealHP_Const_OnHittingOthers"
,
true
).
addHealData
(
"Q"
,
"Avatar_Barbara_IdolHeal"
,
0.374f
,
4660
f
,
true
));
healDataAvatarList
.
add
(
new
HealDataAvatar
(
10000065
,
"Shinobu"
,
0
).
addHealData
(
"E"
,
"ElementalArt_Heal_MaxHP_Percentage"
,
0.064f
,
795
f
,
false
));
healDataAvatarList
.
add
(
new
HealDataAvatar
(
10000065
,
"Shinobu"
,
0
).
addHealData
(
"E"
,
"ElementalArt_Heal_MaxHP_Percentage"
,
0.064f
,
795
f
,
false
));
healDataAvatarList
.
add
(
new
HealDataAvatar
(
10000035
,
"Qiqi"
,
1
).
addHealData
(
"E"
,
"HealHP_OnHittingOthers"
,
"HealHP_Const_OnHittingOthers"
,
true
).
addHealData
(
"E"
,
"ElementalArt_HealHp_Ratio"
,
"ElementalArt_HealHp_Const"
,
true
).
addHealData
(
"Q"
,
"Avatar_Qiqi_ElementalBurst_ApplyModifier"
,
0.0191f
,
1588
f
,
false
));
healDataAvatarList
.
add
(
new
HealDataAvatar
(
10000035
,
"Qiqi"
,
1
).
addHealData
(
"E"
,
"HealHP_OnHittingOthers"
,
"HealHP_Const_OnHittingOthers"
,
true
).
addHealData
(
"E"
,
"ElementalArt_HealHp_Ratio"
,
"ElementalArt_HealHp_Const"
,
true
).
addHealData
(
"Q"
,
"Avatar_Qiqi_ElementalBurst_ApplyModifier"
,
0.0191f
,
1588
f
,
false
));
healDataAvatarList
.
add
(
new
HealDataAvatar
(
10000046
,
"Hutao"
,
0
).
addHealData
(
"Q"
,
"Avatar_Hutao_VermilionBite_BakeMesh"
,
0.1166f
,
0
f
,
false
));
}
}
public
Player
getPlayer
()
{
public
Player
getPlayer
()
{
...
@@ -128,7 +129,7 @@ public class HealAbilityManager {
...
@@ -128,7 +129,7 @@ public class HealAbilityManager {
int
fightPropertyType
=
0
;
int
fightPropertyType
=
0
;
float
healAmount
=
0
;
float
healAmount
=
0
;
float
ratio
=
0
,
base
=
0
;
float
ratio
=
0
,
base
=
0
;
float
maxHP
,
curAttack
,
curDefense
;
float
maxHP
,
curHP
,
curAttack
,
curDefense
;
Map
<
String
,
Float
>
map
=
sourceEntity
.
getMetaOverrideMap
();
Map
<
String
,
Float
>
map
=
sourceEntity
.
getMetaOverrideMap
();
for
(
int
i
=
0
;
i
<
healDataAvatarList
.
size
()
;
i
++)
{
for
(
int
i
=
0
;
i
<
healDataAvatarList
.
size
()
;
i
++)
{
...
@@ -173,8 +174,15 @@ public class HealAbilityManager {
...
@@ -173,8 +174,15 @@ public class HealAbilityManager {
if
(
healActionAvatar
!=
null
)
{
if
(
healActionAvatar
!=
null
)
{
maxHP
=
healActionAvatar
.
getFightProperty
(
FightProperty
.
FIGHT_PROP_MAX_HP
);
maxHP
=
healActionAvatar
.
getFightProperty
(
FightProperty
.
FIGHT_PROP_MAX_HP
);
curHP
=
healActionAvatar
.
getFightProperty
(
FightProperty
.
FIGHT_PROP_CUR_HP
);
curAttack
=
healActionAvatar
.
getFightProperty
(
FightProperty
.
FIGHT_PROP_CUR_ATTACK
);
curAttack
=
healActionAvatar
.
getFightProperty
(
FightProperty
.
FIGHT_PROP_CUR_ATTACK
);
curDefense
=
healActionAvatar
.
getFightProperty
(
FightProperty
.
FIGHT_PROP_CUR_DEFENSE
);
curDefense
=
healActionAvatar
.
getFightProperty
(
FightProperty
.
FIGHT_PROP_CUR_DEFENSE
);
//Special case for Hu Tao:
if
(
healDataAvatar
.
avatarName
.
equals
(
"Hutao"
)
&&
curHP
<=
maxHP
*
0.5
&&
ratio
!=
0
)
{
ratio
=
0.1555f
;
}
switch
(
fightPropertyType
)
{
switch
(
fightPropertyType
)
{
case
0
:
case
0
:
healAmount
=
ratio
*
maxHP
+
base
;
healAmount
=
ratio
*
maxHP
+
base
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment