Commit Graph

2332 Commits

Author SHA1 Message Date
Breno A.
6d669bd47a refactor: Integer.ParseInt is more appropriate here 2024-06-09 09:19:41 -03:00
Breno A.
bb82e21c82 refactor: replace for loop with enhanced loop 2024-06-09 09:18:48 -03:00
Breno A.
b5d0afd0fe refactor: we don't need explicit types here 2024-06-09 09:17:05 -03:00
Breno A.
fcd409320d refactor: replace statement with expression lambda 2024-06-09 09:15:22 -03:00
Breno A.
c7119aae68 refactor: simplify map operations
we can use computeIfAbsent here
2024-06-09 09:13:18 -03:00
Breno A.
3119e0fffc refactor: replace lambda with method reference 2024-06-09 09:11:58 -03:00
Breno A.
870085fc91 refactor: replace lambda with method reference 2024-06-09 09:10:48 -03:00
Breno A.
8c35c89bf5 refactor: replace Collections.sort with list.sort
Collections.sort is just a wrapper, so it is better to use an instance method directly.
2024-06-09 09:09:45 -03:00
Breno A.
9c946e9d2e chore: remove unused import 2024-06-09 09:07:54 -03:00
Breno A.
427a1cf5f5 fix: variable is assigned to itself 2024-06-09 09:06:12 -03:00
Breno A.
0161b4d73d refactor: replace protected with private for final class 2024-06-09 09:04:26 -03:00
Breno A.
ca6ddfd2cc refactor: replace protected with private for final class 2024-06-09 09:03:50 -03:00
Breno A.
7d3abb083b refactor: this can also be final 2024-06-09 09:00:39 -03:00
Breno A.
9fa0f2bcad refactor: unwrap redundant code block 2024-06-09 08:58:01 -03:00
Breno A.
029ef823e1 refactor: remove unnecessary semicolons 2024-06-09 08:56:58 -03:00
Breno A.
c3eafba072 refactor: remove unnecessary toString call 2024-06-09 08:55:58 -03:00
Breno A.
ef58ab3e5a refactor: replace size() == 0 with isEmpty() 2024-06-09 08:54:37 -03:00
Breno A.
da61d30f44 refactor: make getGoodsLimit one liner 2024-06-09 08:50:40 -03:00
Breno A.
6bb349d92b fix: make those fields final 2024-06-09 08:47:56 -03:00
Ign1s_Reiga
76fd5b2e9c
Update README_ja-JP.md (#2516) 2024-06-05 21:14:11 -04:00
KittenPixel
4022267888
Configuration Update - Shown Email (#2509)
* This version will allow the private server owner to show a different email then "@grasscutter.io" if they want.

* Update src/main/java/emu/grasscutter/config/ConfigContainer.java

Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>

* Update src/main/java/emu/grasscutter/game/Account.java

Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>

* Update src/main/java/emu/grasscutter/game/Account.java

Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>

---------

Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>
2024-05-13 21:58:46 -04:00
Magix
f1f5b54939
(fix:docker) Fix uploading to container registry 2024-03-16 23:09:40 -07:00
Jordan Jones
f871f261e1
Add Docker Support (#2486)
* chore(docker): add build workflow

* chore(docker): update gradle image

* chore(docker): this really shouldnt be running on raspberry pi's right now.

* chore(docker): not sure why we need unzip here

* chore(docker): attempt to add nodejs to allow the handbook to build

* chore(docker): whoops, needs to be done during build

* chore(docker): i dont know if this is going to work

* chore(docker): replace my username with repo org as I am no longer testing this

* chore(docker): version will change in the future, so fix it now.
2024-03-17 01:57:39 -04:00
Gaobaiawa
eeaccf32c4
add some client download link and fix readme (#2475)
* Update README.md

* Update README_zh-CN.md

* Update README_hn-IN.md
2024-03-17 01:14:10 -04:00
OmegaPobretón
6e1913aacb
Add documentation on 404 error page. (#2463)
* Update HttpServer.java

* Update HttpServer.java

---------

Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>
2024-01-18 23:30:03 -05:00
Thoronium
9e17e4aacb
Update client link (#2470) 2024-01-18 23:15:13 -05:00
github-actions
770a793c69 Format code [skip actions] 2023-12-14 05:36:30 +00:00
longfruit
c4402cc287
Fix some more dungeons (#2449)
* Monds weapon mats domain: Fix time between kill not refreshing
* Inaz husk domain: Fix broken domain challenge
    * `EVENT_ANY_MONSTER_LIVE` is likely sent on tick, not on create. See scene40801_group240801001.lua:
        1. `condition_EVENT_ANY_MONSTER_LIVE_1023` checks for mob 1008 to spawn AND for variable `challenge` to be 1
        2. Mob 1008 spawns during `action_EVENT_SELECT_OPTION_1003`, at `ScriptLib.AddExtraGroupSuite(context, 240801001, 2)`
        3. This spawn triggers `EVENT_ANY_MONSTER_LIVE` for mob 1008 but still fails the condition because `challenge` is still 0.
        4. `challenge` is set to 1 at the end of `action_EVENT_SELECT_OPTION_1003`. By now, `EVENT_ANY_MONSTER_LIVE` for mob 1008 no longer fires, causing the domain challenge to fail to start.
2023-12-14 00:34:50 -05:00
KingRainbow44
5ebad71e9d
Bump to version 1.7.4 2023-11-30 23:41:55 -05:00
Ign1s_Reiga
564b609028
Update README_ja-JP.md (#2438)
* Update README_ja-JP.md

* fix sentences correctly
2023-11-19 19:34:14 -05:00
github-actions
cdb0dc560a Format code [skip actions] 2023-11-17 04:58:02 +00:00
longfruit
d8c3da8fcd
Handle mob summon and limbo state (#2432)
Mob summon: Something like Monster_Apparatus_Perpetual can summon helper mobs. Ensure these helpers actually get summoned and, on their defeat, possibly change the summoner's mob state. Like, temporarily enter weak state.
* Take summon tags from BinOutput/Monster/ConfigMonster_*.json and put them in SceneMonsterInfo
* Handle Summon action in ability modifiers from BinOutput/Ability/Temp/MonsterAbilities/ConfigAbility_Monster_*.json
* On summoner's kill, also kill the summoned mobs

Limbo state: Something like Monster_Invoker_Herald_Water should be invulnerable at a certain HP threshold. Like, shouldn't die when creating their elemental shield. Or, Monster_Apparatus_Perpetual's helper mobs shouldn't die before their summoner.
* Look through ConfigAbility (AbilityData in GC) like Invoker_Herald_Water_StateControl. If any AbilityModifier within specifies state Limbo and properties.Actor_HpThresholdRatio, account for this threshold in GameEntity::damage.
* Don't let the entity die while in limbo. They will be killed by other events.
2023-11-16 23:56:37 -05:00
github-actions
13c40b53a7 Format code [skip actions] 2023-11-10 02:57:50 +00:00
hamusuke
f1c1a84683
fix: NPE related to teapot when player logs in. (#2429)
* fix: NPE related to home when player logs in.

* fix: NPE related to home when player logs in.

* forgot to save player after fixing module id
2023-11-09 21:56:21 -05:00
github-actions
2bcbd41026 Format code [skip actions] 2023-11-09 02:16:38 +00:00
ender non
adf8031684
Fix a typo from "culivation" to "cultivation" in readme EN, zh-CN, zh-TW (#2431)
* fix a singular typo in readme.md

fixed "culivation" to cultivation

* Update README_zh-CN.md

culivation to cultivation

* Update zh-TW to fix "culivation"

Cultivation from culivaton
2023-11-08 21:15:57 -05:00
longfruit
0bbeaf254b
Fix tower mob level and hp scaling (#2430) 2023-11-08 21:15:10 -05:00
github-actions
1fac319eb2 Format code [skip actions] 2023-11-05 19:58:28 +00:00
longfruit
d224178a64
Only deduct energy when elemental burst actually fires (#2424) 2023-11-05 14:57:17 -05:00
github-actions
d461ee2eb3 Format code [skip actions] 2023-11-03 02:02:24 +00:00
longfruit
24874e7fba
Implement abyss defense objective (#2422) 2023-11-02 22:00:05 -04:00
KingRainbow44
205b79dc02
Merge remote-tracking branch 'origin/development' into development 2023-10-31 22:36:22 -04:00
KingRainbow44
0e033e3f77
Bump to version 1.7.3 2023-10-31 22:23:45 -04:00
github-actions
583a41ab2c Format code [skip actions] 2023-11-01 01:54:08 +00:00
longfruit
cf6fb275be
Add events to support scene group substitution (#2413)
* Add events to support scene group substitution

* make event members private with getter/setter

* delete stray unused var
2023-10-31 21:52:01 -04:00
Ikko Eltociear Ashimine
269f7b4fbf
Fix typo in start.cmd (#2415)
enviroment -> environment
2023-10-31 19:50:31 -04:00
github-actions
9b4ce34f4a Format code [skip actions] 2023-10-26 02:29:17 +00:00
longfruit
f86259a430
Fix some revives; improve dungeon exit flow (#2409) 2023-10-25 22:27:48 -04:00
github-actions
837e30e04b Format code [skip actions] 2023-10-19 13:19:46 +00:00
longfruit
f5703e5964
Fix mirror tower stages; fix tower time challenge and star scoring (#2406) 2023-10-19 09:18:12 -04:00