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
735f7653
Commit
735f7653
authored
2 years ago
by
AnimeGitB
Browse files
Options
Downloads
Patches
Plain Diff
Fix elementless Traveler depotValue
parent
36585840
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/props/ElementType.java
+7
-7
7 additions, 7 deletions
src/main/java/emu/grasscutter/game/props/ElementType.java
with
7 additions
and
7 deletions
src/main/java/emu/grasscutter/game/props/ElementType.java
+
7
−
7
View file @
735f7653
...
...
@@ -26,7 +26,7 @@ public enum ElementType {
@Getter
private
final
int
teamResonanceId
;
@Getter
private
final
FightProperty
curEnergyProp
;
@Getter
private
final
FightProperty
maxEnergyProp
;
@Getter
private
int
depotValue
;
@Getter
private
final
int
depotValue
;
@Getter
private
final
int
configHash
;
private
static
final
Int2ObjectMap
<
ElementType
>
map
=
new
Int2ObjectOpenHashMap
<>();
private
static
final
Map
<
String
,
ElementType
>
stringMap
=
new
HashMap
<>();
...
...
@@ -39,14 +39,19 @@ public enum ElementType {
}
private
ElementType
(
int
value
,
FightProperty
curEnergyProp
,
FightProperty
maxEnergyProp
)
{
this
(
value
,
curEnergyProp
,
maxEnergyProp
,
0
,
null
);
this
(
value
,
curEnergyProp
,
maxEnergyProp
,
0
,
null
,
1
);
}
private
ElementType
(
int
value
,
FightProperty
curEnergyProp
,
FightProperty
maxEnergyProp
,
int
teamResonanceId
,
String
configName
)
{
this
(
value
,
curEnergyProp
,
maxEnergyProp
,
teamResonanceId
,
configName
,
1
);
}
private
ElementType
(
int
value
,
FightProperty
curEnergyProp
,
FightProperty
maxEnergyProp
,
int
teamResonanceId
,
String
configName
,
int
depotValue
)
{
this
.
value
=
value
;
this
.
curEnergyProp
=
curEnergyProp
;
this
.
maxEnergyProp
=
maxEnergyProp
;
this
.
teamResonanceId
=
teamResonanceId
;
this
.
depotValue
=
depotValue
;
if
(
configName
!=
null
)
{
this
.
configHash
=
Utils
.
abilityHash
(
configName
);
}
else
{
...
...
@@ -54,11 +59,6 @@ public enum ElementType {
}
}
private
ElementType
(
int
value
,
FightProperty
curEnergyProp
,
FightProperty
maxEnergyProp
,
int
teamResonanceId
,
String
configName
,
int
depotValue
)
{
this
(
value
,
curEnergyProp
,
maxEnergyProp
,
teamResonanceId
,
configName
);
this
.
depotValue
=
depotValue
;
}
public
static
ElementType
getTypeByValue
(
int
value
)
{
return
map
.
getOrDefault
(
value
,
None
);
}
...
...
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