2348 Commits

Author SHA1 Message Date
ceed05cd15 Updated Polish Translation (#1889) 2022-10-24 10:33:15 +10:30
7d1a7b501b Added "s" alias to SpawnCommand (closes #1840) 2022-10-24 10:32:10 +10:30
8b520b3883 fix: unlocking home bgm doesn't work. (#1886)
* fix: unlocking home bgm doesn't work.

* Update src/main/java/emu/grasscutter/game/home/GameHome.java

Co-authored-by: Luke H-W <Birdulon@users.noreply.github.com>

Co-authored-by: Luke H-W <Birdulon@users.noreply.github.com>
2022-10-23 15:08:17 +10:30
54ad108a14 Fix edge case on FileUtils::getFilenameWithoutPath 2022-10-22 17:15:43 +10:30
ccf182d692 Medicine revival&Login white screen (#1883)
* Update InventorySystem.java

-:[fix] Medicine revival

* Update GameMainQuest.java

-:[fix] Login white screen
2022-10-22 16:51:33 +10:30
c51f7610b2 Save avatar in forceConstellationLevel (closes #1881) 2022-10-22 12:45:27 +10:30
c331a7f288 Fix IllegalStateException when execute toMap (#1879) 2022-10-21 21:49:48 +10:30
be8fbcbc02 Fix StackOverFlow when execute /give all (#1878)
* Fix StackOverFlow when execute /give all

* Use more proper code
2022-10-20 20:22:10 +10:30
c5d30c44eb Version 1.4.2-dev [skip actions] 2022-10-18 14:56:27 +00:00
6146d14dc1 Version 1.4.1
Fix whitespace [skip actions]
Restore ability to run without jar (#1875)
Avoid NPE on CookingCompoundManager init
Extend give command "skill level" & shortening /talent all (#1865)
Remove stale item handling code
Fix gacha avatars (fixes #1870)
Refactor out some EntrySets
send CompoundDataNotify on Login;fix spelling mistakes. (#1869)
Change logging level on item use from info to debug
feat:cooking food ingredient(aka:compound) implementation (#1858)
Remove constellation charge and talent level bonuses from db
Fix ambiguous command regexes
feat: set emoji collection in chat screen (#1864)
feat: set friend enter home option (#1860)
Add a dictionary for Encryption public keys (#1862)
Refactor handbook generation to not use naked textmap getter
Accept resource enums of form "1"
Update ru-RU.json (#1855)
Version 1.4.1-dev [skip actions]
v1.4.1
2022-10-18 14:56:27 +00:00
96da4b6117 Fix whitespace [skip actions] 2022-10-18 14:56:26 +00:00
026ef9c51b Restore ability to run without jar (#1875)
* Change JAR_FILE_SYSTEM to allow running from IDE without jar

* Just grab /defaults/data

* Restore FileUtils.getPathsFromResource
2022-10-19 01:26:11 +10:30
577772831c Avoid NPE on CookingCompoundManager init 2022-10-18 19:47:21 +10:30
2b08738043 Extend give command "skill level" & shortening /talent all (#1865)
* Extend give command "talent"

* Update src/main/java/emu/grasscutter/data/excels/AvatarSkillDepotData.java

Shorten IntStream for getCombatSkills

Co-authored-by: Luke H-W <Birdulon@users.noreply.github.com>

* Fix setSkillLevel to work during avatar construction
Shortening getCombatSkills

* changeSkillLevel now acts as intermediate operation to fetch skillIds

* setSkillLevel changes to allow out of range levels to be normalized

* Update src/main/java/emu/grasscutter/command/commands/GiveCommand.java

Removing recalcStats since it's redundant

Co-authored-by: Luke H-W <Birdulon@users.noreply.github.com>

* Major changes and cleanup:
- AvatarSkillDepotData: removed getCombatSkills since it's unused
- TalentCommand: shortened /talent all using getSkillsAndEnergySkill
- GiveCommand: changed changeSkillLevel to setSkillLevel
- Avatar: delete changeSkillLevel and moved the operation inside setSkillLevel,updated skillId to Integer to catch special cases from GiveCommand

* Small cleanup:
Removed the special case from Avatar to be handled inside of GiveCommand

Co-authored-by: Luke H-W <Birdulon@users.noreply.github.com>
2022-10-18 19:45:24 +10:30
b5940da36b Remove stale item handling code 2022-10-18 17:57:49 +10:30
aacf013c06 Fix gacha avatars (fixes #1870) 2022-10-18 15:11:33 +10:30
85f44ebdf3 Refactor out some EntrySets 2022-10-17 20:47:52 +10:30
b5f356ce4f send CompoundDataNotify on Login;fix spelling mistakes. (#1869) 2022-10-17 20:44:06 +10:30
84d02370df Change logging level on item use from info to debug 2022-10-17 19:21:14 +10:30
cf67c44f22 feat:cooking food ingredient(aka:compound) implementation (#1858)
* feat:cooking food ingredient(aka:compound) implementation

Implement food ingredient(compound) feature.Need a thorough test and still has some work to do.

* small bug fix;implement fish processing

* Update src/main/java/emu/grasscutter/server/packet/send/PacketItemAddHintNotify.java

Co-authored-by: Luke H-W <Birdulon@users.noreply.github.com>

* Update Inventory.java

* Update Inventory.java

Co-authored-by: Luke H-W <Birdulon@users.noreply.github.com>
2022-10-17 19:18:05 +10:30
1ecc3f4390 Remove constellation charge and talent level bonuses from db 2022-10-17 16:13:28 +10:30
cbd66a7437 Fix ambiguous command regexes 2022-10-17 13:53:53 +10:30
01e37cce39 feat: set emoji collection in chat screen (#1864) 2022-10-16 22:23:00 +10:30
610a364b9a feat: set friend enter home option (#1860) 2022-10-15 11:58:45 -04:00
a4747abfc9 Add a dictionary for Encryption public keys (#1862) 2022-10-16 00:36:37 +10:30
f3a5bc16a8 Refactor handbook generation to not use naked textmap getter 2022-10-15 23:58:33 +10:30
4a5a7bd6bd Accept resource enums of form "1" 2022-10-15 22:18:54 +10:30
130a01faa4 Update ru-RU.json (#1855) 2022-10-14 03:08:05 +10:30
06fe05bcf7 Version 1.4.1-dev [skip actions] 2022-10-13 13:32:11 +00:00
23f1298d6c Version 1.4.0
Fix whitespace [skip actions]
[BREAKING] Item Usage Overhaul
Updated MAX_FRIENDS (#1852)
Refactor GameData, remove deprecated getGsonFactory - Fix day-of-week dungeons - AvatarSkill max level enforcement from excels - Partial fix to bonus levels (need packet on talent update)
Lombokify and sort GameData
Extend talent command "all" (#1850)
fix: Solar Isotoma Elevator doesn't work in multiplayer mode (#1848)
fix: ConcurrentModificationError by removing gadget (#1849)
Add DynamicFloat class
fix: albedo elevator doesn't work (#1845)
Update GM Handbook with Spincrystal names and Monster strings
feat: unlock homeworld bgm and set homeworld bgm. (#1844)
Flatten language translation keys in-memory
feat: set namecards in profile editing. (#1843)
fix costumes are unable to be unlocked. (#1842)
Fix food decreasing (#1834)
Fix showing ban message box (#1826)
Don't need full Java stacktrace on Lua errors
Move Data, Plugin, Script, Packet access from Strings to Paths (#1839)
Add `shutdown` alias to StopCommand
Update Banners.json (#1813)
[BREAKING] Deobfuscate codex field, slight refactor (#1809)
3.1 Support (#1808)
refactor HandlerWidgetDoBagReq
Update README.md
Fixed a tons of errors to make the drop system to accord with that in the actual game
Allow loading Resources from zip files Move Resources loading from String filenames to Paths Add zip support
Add `-game` and `-dispatch` startup arguments that override the run mode in the config
Use reflection to map database classes and add missing mapped classes to the dispatch datastore
Version 1.3.2-dev [skip actions]
v1.4.0
2022-10-13 13:32:11 +00:00
025e5d3c1c Fix whitespace [skip actions] 2022-10-13 13:32:10 +00:00
d1d39db56c [BREAKING] Item Usage Overhaul
-De-hardcode elemental orb values
-De-hardcode exp items
-Change ShopChest format (temporary, drop system overhaul will replace it entirely)
-Food healing actually uses Ability data for real HP amounts
2022-10-14 00:00:40 +10:30
5bb43ac074 Updated MAX_FRIENDS (#1852) 2022-10-13 18:32:58 +10:30
4e75361ad4 Refactor GameData, remove deprecated getGsonFactory
- Fix day-of-week dungeons
- AvatarSkill max level enforcement from excels
- Partial fix to bonus levels (need packet on talent update)
2022-10-13 18:31:34 +10:30
bb342f9114 Lombokify and sort GameData 2022-10-13 14:58:49 +10:30
953272489d Extend talent command "all" (#1850)
* Extend talent command "all":
Added talent option to set all talents (n, e, q) at once
Modified error message to cover edge cases when player entered talent level lower than 1

* Update src/main/java/emu/grasscutter/command/commands/TalentCommand.java

some suggested changes

Co-authored-by: Luke H-W <Birdulon@users.noreply.github.com>
2022-10-13 12:46:59 +10:30
ec3cdc040f fix: Solar Isotoma Elevator doesn't work in multiplayer mode (#1848) 2022-10-12 22:14:25 +10:30
ef55e5515c fix: ConcurrentModificationError by removing gadget (#1849) 2022-10-12 22:07:53 +10:30
558471237a Add DynamicFloat class 2022-10-12 21:58:39 +10:30
bf8ee32382 fix: albedo elevator doesn't work (#1845)
* Packet preparation

* elevator creation

* Make elevator work, scene time, entity removed event.

* Avoid referencing certain character name.
2022-10-12 17:26:45 +10:30
f801fe0305 Update GM Handbook with Spincrystal names and Monster strings 2022-10-12 16:01:22 +10:30
4da4c03ecc feat: unlock homeworld bgm and set homeworld bgm. (#1844)
* will be able to change home bgm.

* feat: unlock homeworld bgm and set homeworld bgm.

* Update src/main/java/emu/grasscutter/game/home/GameHome.java

* Update GameHome.java

* Get default unlocked home bgms from HomeWorldBgmData

* fix: duplicate home items by sending packet
2022-10-11 22:29:43 +10:30
98ac42a6c6 Flatten language translation keys in-memory 2022-10-09 12:21:05 +10:30
a4f10208de feat: set namecards in profile editing. (#1843)
* add: can set name cards in profile editing.

* some changes

* Update src/main/java/emu/grasscutter/game/player/Player.java

* Update src/main/java/emu/grasscutter/server/packet/recv/HandlerGetFriendShowNameCardInfoReq.java

* Update src/main/java/emu/grasscutter/server/packet/recv/HandlerUpdatePlayerShowNameCardListReq.java

* Update src/main/java/emu/grasscutter/server/packet/send/PacketGetFriendShowNameCardInfoRsp.java

* Update src/main/java/emu/grasscutter/server/packet/send/PacketUpdatePlayerShowNameCardListRsp.java

* Update src/main/java/emu/grasscutter/game/player/Player.java
2022-10-09 11:40:10 +10:30
e23536e7ba fix costumes are unable to be unlocked. (#1842)
* fix: costumes are able to be unlocked.

* Update AvatarCostumeData
2022-10-09 11:10:42 +10:30
004a765e5b Fix food decreasing (#1834)
* Update InventorySystem.java

Fix some food didn't reduce after use.

* Update InventorySystem.java
2022-10-08 01:44:29 +10:30
a520bc9416 Fix showing ban message box (#1826)
* fix: getplayertoken ban message popup

* feat: insure no packet handle when banned

* feat: using session state instead of account
2022-10-08 01:37:20 +10:30
0b9cab5ad5 Don't need full Java stacktrace on Lua errors 2022-10-07 23:06:26 +10:30
dd6e1bb8a3 Move Data, Plugin, Script, Packet access from Strings to Paths (#1839)
* Move Data, Plugin, Script, Packet access from Strings to Paths
- No longer dump default Data files to folder on launch
- Allow Scripts to be loaded from Resources zip
- Lay groundwork for Plugins to be loaded from zip
2022-10-07 23:01:08 +10:30
f6ce7e349d Add shutdown alias to StopCommand 2022-10-04 01:33:01 +10:30