-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend spawn command #1777
Extend spawn command #1777
Conversation
src/main/java/emu/grasscutter/command/commands/ClearCommand.java
Outdated
Show resolved
Hide resolved
Suggestion: Maybe we could also add the ability to spawn monsters (1) with a set amount of HP, which might be very large/infinite, (2) with the AI turned off. This would effectively make it possible to spawn a test dummy monster. Something like that would have been very useful while working on energy, for example, and would also be useful for testing if certain passives etc. work. |
Sound certainly usefull, I will look into it. |
* move common command patterns and methods to CommandHelpers * let the spawn command detect the entityType instead of spawning every entity as EntityVehicle * add extra options for spawning gadgets for better debuging and testing
5b16163
to
13c1186
Compare
Updated the pr, it now allows settings the stats of monsters and gadgets, overwriting the ai Id of monsters(e.g. 12001001 would be a non attacking but moving monster) and moves the int parameter handling to the CommandHelpers. |
src/main/java/emu/grasscutter/command/commands/SpawnCommand.java
Outdated
Show resolved
Hide resolved
* Moved remaining patterns from GiveCommand and ClearCommand to CommandHelpers * Added patterns for hp, maxhp, atk, def and (monster)ai for the spawn command * Moved intParam parsing via regex to the CommandHelpers * Read most of EntityVehicle stats from the ConfigGadget instead of hardcoding them
13c1186
to
d5e8307
Compare
Fix whitespace [skip actions] Extend spawn command (#1777) character and companionship exp gain to party not active character fixes #1787 fixed gadget hp properties and invincibility handling (#1773) Add support for propperly showing activity shops (#1774) Improve team respawn (#1752) Update README.md (the origin) (#1736) Update banners (closes #1760) Update zh-CN.json (#1762) Calculate Banner.previewPrefabPath Forbid PRs from modifying certain files Added a directive to fix some minor bugs (#1744) remove accidentally committed symlink Version 1.3.1-dev [skip actions]
Fix whitespace [skip actions] Flatten language translation keys in-memory feat: set namecards in profile editing. (Grasscutters#1843) fix costumes are unable to be unlocked. (Grasscutters#1842) Fix food decreasing (Grasscutters#1834) Fix showing ban message box (Grasscutters#1826) Don't need full Java stacktrace on Lua errors Move Data, Plugin, Script, Packet access from Strings to Paths (Grasscutters#1839) Add `shutdown` alias to StopCommand Update Banners.json (Grasscutters#1813) [BREAKING] Deobfuscate codex field, slight refactor (Grasscutters#1809) 3.1 Support (Grasscutters#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] Version 1.3.1 Fix whitespace [skip actions] Extend spawn command (Grasscutters#1777) character and companionship exp gain to party not active character fixes Grasscutters#1787 fixed gadget hp properties and invincibility handling (Grasscutters#1773) Add support for propperly showing activity shops (Grasscutters#1774) Improve team respawn (Grasscutters#1752) Update README.md (the origin) (Grasscutters#1736) Update banners (closes Grasscutters#1760) Update zh-CN.json (Grasscutters#1762) Calculate Banner.previewPrefabPath Forbid PRs from modifying certain files Added a directive to fix some minor bugs (Grasscutters#1744) remove accidentally committed symlink Version 1.3.1-dev [skip actions]
Fix whitespace [skip actions] Update GM Handbook with Spincrystal names and Monster strings feat: unlock homeworld bgm and set homeworld bgm. (Grasscutters#1844) Flatten language translation keys in-memory feat: set namecards in profile editing. (Grasscutters#1843) fix costumes are unable to be unlocked. (Grasscutters#1842) Fix food decreasing (Grasscutters#1834) Fix showing ban message box (Grasscutters#1826) Don't need full Java stacktrace on Lua errors Move Data, Plugin, Script, Packet access from Strings to Paths (Grasscutters#1839) Add `shutdown` alias to StopCommand Update Banners.json (Grasscutters#1813) [BREAKING] Deobfuscate codex field, slight refactor (Grasscutters#1809) 3.1 Support (Grasscutters#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] Version 1.3.1 Fix whitespace [skip actions] Extend spawn command (Grasscutters#1777) character and companionship exp gain to party not active character fixes Grasscutters#1787 fixed gadget hp properties and invincibility handling (Grasscutters#1773) Add support for propperly showing activity shops (Grasscutters#1774) Improve team respawn (Grasscutters#1752) Update README.md (the origin) (Grasscutters#1736) Update banners (closes Grasscutters#1760) Update zh-CN.json (Grasscutters#1762) Calculate Banner.previewPrefabPath Forbid PRs from modifying certain files Added a directive to fix some minor bugs (Grasscutters#1744) remove accidentally committed symlink Version 1.3.1-dev [skip actions]
Fix whitespace [skip actions] Add DynamicFloat class fix: albedo elevator doesn't work (Grasscutters#1845) Update GM Handbook with Spincrystal names and Monster strings feat: unlock homeworld bgm and set homeworld bgm. (Grasscutters#1844) Flatten language translation keys in-memory feat: set namecards in profile editing. (Grasscutters#1843) fix costumes are unable to be unlocked. (Grasscutters#1842) Fix food decreasing (Grasscutters#1834) Fix showing ban message box (Grasscutters#1826) Don't need full Java stacktrace on Lua errors Move Data, Plugin, Script, Packet access from Strings to Paths (Grasscutters#1839) Add `shutdown` alias to StopCommand Update Banners.json (Grasscutters#1813) [BREAKING] Deobfuscate codex field, slight refactor (Grasscutters#1809) 3.1 Support (Grasscutters#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] Version 1.3.1 Fix whitespace [skip actions] Extend spawn command (Grasscutters#1777) character and companionship exp gain to party not active character fixes Grasscutters#1787 fixed gadget hp properties and invincibility handling (Grasscutters#1773) Add support for propperly showing activity shops (Grasscutters#1774) Improve team respawn (Grasscutters#1752) Update README.md (the origin) (Grasscutters#1736) Update banners (closes Grasscutters#1760) Update zh-CN.json (Grasscutters#1762) Calculate Banner.previewPrefabPath Forbid PRs from modifying certain files Added a directive to fix some minor bugs (Grasscutters#1744) remove accidentally committed symlink Version 1.3.1-dev [skip actions]
Fix whitespace [skip actions] fix: Solar Isotoma Elevator doesn't work in multiplayer mode (Grasscutters#1848) fix: ConcurrentModificationError by removing gadget (Grasscutters#1849) Add DynamicFloat class fix: albedo elevator doesn't work (Grasscutters#1845) Update GM Handbook with Spincrystal names and Monster strings feat: unlock homeworld bgm and set homeworld bgm. (Grasscutters#1844) Flatten language translation keys in-memory feat: set namecards in profile editing. (Grasscutters#1843) fix costumes are unable to be unlocked. (Grasscutters#1842) Fix food decreasing (Grasscutters#1834) Fix showing ban message box (Grasscutters#1826) Don't need full Java stacktrace on Lua errors Move Data, Plugin, Script, Packet access from Strings to Paths (Grasscutters#1839) Add `shutdown` alias to StopCommand Update Banners.json (Grasscutters#1813) [BREAKING] Deobfuscate codex field, slight refactor (Grasscutters#1809) 3.1 Support (Grasscutters#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] Version 1.3.1 Fix whitespace [skip actions] Extend spawn command (Grasscutters#1777) character and companionship exp gain to party not active character fixes Grasscutters#1787 fixed gadget hp properties and invincibility handling (Grasscutters#1773) Add support for propperly showing activity shops (Grasscutters#1774) Improve team respawn (Grasscutters#1752) Update README.md (the origin) (Grasscutters#1736) Update banners (closes Grasscutters#1760) Update zh-CN.json (Grasscutters#1762) Calculate Banner.previewPrefabPath Forbid PRs from modifying certain files Added a directive to fix some minor bugs (Grasscutters#1744) remove accidentally committed symlink Version 1.3.1-dev [skip actions]
Fix whitespace [skip actions] Lombokify and sort GameData Extend talent command "all" (Grasscutters#1850) fix: Solar Isotoma Elevator doesn't work in multiplayer mode (Grasscutters#1848) fix: ConcurrentModificationError by removing gadget (Grasscutters#1849) Add DynamicFloat class fix: albedo elevator doesn't work (Grasscutters#1845) Update GM Handbook with Spincrystal names and Monster strings feat: unlock homeworld bgm and set homeworld bgm. (Grasscutters#1844) Flatten language translation keys in-memory feat: set namecards in profile editing. (Grasscutters#1843) fix costumes are unable to be unlocked. (Grasscutters#1842) Fix food decreasing (Grasscutters#1834) Fix showing ban message box (Grasscutters#1826) Don't need full Java stacktrace on Lua errors Move Data, Plugin, Script, Packet access from Strings to Paths (Grasscutters#1839) Add `shutdown` alias to StopCommand Update Banners.json (Grasscutters#1813) [BREAKING] Deobfuscate codex field, slight refactor (Grasscutters#1809) 3.1 Support (Grasscutters#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] Version 1.3.1 Fix whitespace [skip actions] Extend spawn command (Grasscutters#1777) character and companionship exp gain to party not active character fixes Grasscutters#1787 fixed gadget hp properties and invincibility handling (Grasscutters#1773) Add support for propperly showing activity shops (Grasscutters#1774) Improve team respawn (Grasscutters#1752) Update README.md (the origin) (Grasscutters#1736) Update banners (closes Grasscutters#1760) Update zh-CN.json (Grasscutters#1762) Calculate Banner.previewPrefabPath Forbid PRs from modifying certain files Added a directive to fix some minor bugs (Grasscutters#1744) remove accidentally committed symlink Version 1.3.1-dev [skip actions]
Fix whitespace [skip actions] 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" (Grasscutters#1850) fix: Solar Isotoma Elevator doesn't work in multiplayer mode (Grasscutters#1848) fix: ConcurrentModificationError by removing gadget (Grasscutters#1849) Add DynamicFloat class fix: albedo elevator doesn't work (Grasscutters#1845) Update GM Handbook with Spincrystal names and Monster strings feat: unlock homeworld bgm and set homeworld bgm. (Grasscutters#1844) Flatten language translation keys in-memory feat: set namecards in profile editing. (Grasscutters#1843) fix costumes are unable to be unlocked. (Grasscutters#1842) Fix food decreasing (Grasscutters#1834) Fix showing ban message box (Grasscutters#1826) Don't need full Java stacktrace on Lua errors Move Data, Plugin, Script, Packet access from Strings to Paths (Grasscutters#1839) Add `shutdown` alias to StopCommand Update Banners.json (Grasscutters#1813) [BREAKING] Deobfuscate codex field, slight refactor (Grasscutters#1809) 3.1 Support (Grasscutters#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] Version 1.3.1 Fix whitespace [skip actions] Extend spawn command (Grasscutters#1777) character and companionship exp gain to party not active character fixes Grasscutters#1787 fixed gadget hp properties and invincibility handling (Grasscutters#1773) Add support for propperly showing activity shops (Grasscutters#1774) Improve team respawn (Grasscutters#1752) Update README.md (the origin) (Grasscutters#1736) Update banners (closes Grasscutters#1760) Update zh-CN.json (Grasscutters#1762) Calculate Banner.previewPrefabPath Forbid PRs from modifying certain files Added a directive to fix some minor bugs (Grasscutters#1744) remove accidentally committed symlink Version 1.3.1-dev [skip actions]
Fix whitespace [skip actions] [BREAKING] Item Usage Overhaul Updated MAX_FRIENDS (Grasscutters#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" (Grasscutters#1850) fix: Solar Isotoma Elevator doesn't work in multiplayer mode (Grasscutters#1848) fix: ConcurrentModificationError by removing gadget (Grasscutters#1849) Add DynamicFloat class fix: albedo elevator doesn't work (Grasscutters#1845) Update GM Handbook with Spincrystal names and Monster strings feat: unlock homeworld bgm and set homeworld bgm. (Grasscutters#1844) Flatten language translation keys in-memory feat: set namecards in profile editing. (Grasscutters#1843) fix costumes are unable to be unlocked. (Grasscutters#1842) Fix food decreasing (Grasscutters#1834) Fix showing ban message box (Grasscutters#1826) Don't need full Java stacktrace on Lua errors Move Data, Plugin, Script, Packet access from Strings to Paths (Grasscutters#1839) Add `shutdown` alias to StopCommand Update Banners.json (Grasscutters#1813) [BREAKING] Deobfuscate codex field, slight refactor (Grasscutters#1809) 3.1 Support (Grasscutters#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] Version 1.3.1 Fix whitespace [skip actions] Extend spawn command (Grasscutters#1777) character and companionship exp gain to party not active character fixes Grasscutters#1787 fixed gadget hp properties and invincibility handling (Grasscutters#1773) Add support for propperly showing activity shops (Grasscutters#1774) Improve team respawn (Grasscutters#1752) Update README.md (the origin) (Grasscutters#1736) Update banners (closes Grasscutters#1760) Update zh-CN.json (Grasscutters#1762) Calculate Banner.previewPrefabPath Forbid PRs from modifying certain files Added a directive to fix some minor bugs (Grasscutters#1744) remove accidentally committed symlink Version 1.3.1-dev [skip actions]
Accept resource enums of form "1" Update ru-RU.json (Grasscutters#1855) Version 1.4.1-dev [skip actions] Version 1.4.0 Fix whitespace [skip actions] [BREAKING] Item Usage Overhaul Updated MAX_FRIENDS (Grasscutters#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" (Grasscutters#1850) fix: Solar Isotoma Elevator doesn't work in multiplayer mode (Grasscutters#1848) fix: ConcurrentModificationError by removing gadget (Grasscutters#1849) Add DynamicFloat class fix: albedo elevator doesn't work (Grasscutters#1845) Update GM Handbook with Spincrystal names and Monster strings feat: unlock homeworld bgm and set homeworld bgm. (Grasscutters#1844) Flatten language translation keys in-memory feat: set namecards in profile editing. (Grasscutters#1843) fix costumes are unable to be unlocked. (Grasscutters#1842) Fix food decreasing (Grasscutters#1834) Fix showing ban message box (Grasscutters#1826) Don't need full Java stacktrace on Lua errors Move Data, Plugin, Script, Packet access from Strings to Paths (Grasscutters#1839) Add `shutdown` alias to StopCommand Update Banners.json (Grasscutters#1813) [BREAKING] Deobfuscate codex field, slight refactor (Grasscutters#1809) 3.1 Support (Grasscutters#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] Version 1.3.1 Fix whitespace [skip actions] Extend spawn command (Grasscutters#1777) character and companionship exp gain to party not active character fixes Grasscutters#1787 fixed gadget hp properties and invincibility handling (Grasscutters#1773) Add support for propperly showing activity shops (Grasscutters#1774) Improve team respawn (Grasscutters#1752) Update README.md (the origin) (Grasscutters#1736) Update banners (closes Grasscutters#1760) Update zh-CN.json (Grasscutters#1762) Calculate Banner.previewPrefabPath Forbid PRs from modifying certain files Added a directive to fix some minor bugs (Grasscutters#1744) remove accidentally committed symlink Version 1.3.1-dev [skip actions]
Refactor handbook generation to not use naked textmap getter Accept resource enums of form "1" Update ru-RU.json (Grasscutters#1855) Version 1.4.1-dev [skip actions] Version 1.4.0 Fix whitespace [skip actions] [BREAKING] Item Usage Overhaul Updated MAX_FRIENDS (Grasscutters#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" (Grasscutters#1850) fix: Solar Isotoma Elevator doesn't work in multiplayer mode (Grasscutters#1848) fix: ConcurrentModificationError by removing gadget (Grasscutters#1849) Add DynamicFloat class fix: albedo elevator doesn't work (Grasscutters#1845) Update GM Handbook with Spincrystal names and Monster strings feat: unlock homeworld bgm and set homeworld bgm. (Grasscutters#1844) Flatten language translation keys in-memory feat: set namecards in profile editing. (Grasscutters#1843) fix costumes are unable to be unlocked. (Grasscutters#1842) Fix food decreasing (Grasscutters#1834) Fix showing ban message box (Grasscutters#1826) Don't need full Java stacktrace on Lua errors Move Data, Plugin, Script, Packet access from Strings to Paths (Grasscutters#1839) Add `shutdown` alias to StopCommand Update Banners.json (Grasscutters#1813) [BREAKING] Deobfuscate codex field, slight refactor (Grasscutters#1809) 3.1 Support (Grasscutters#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] Version 1.3.1 Fix whitespace [skip actions] Extend spawn command (Grasscutters#1777) character and companionship exp gain to party not active character fixes Grasscutters#1787 fixed gadget hp properties and invincibility handling (Grasscutters#1773) Add support for propperly showing activity shops (Grasscutters#1774) Improve team respawn (Grasscutters#1752) Update README.md (the origin) (Grasscutters#1736) Update banners (closes Grasscutters#1760) Update zh-CN.json (Grasscutters#1762) Calculate Banner.previewPrefabPath Forbid PRs from modifying certain files Added a directive to fix some minor bugs (Grasscutters#1744) remove accidentally committed symlink Version 1.3.1-dev [skip actions]
Fix whitespace [skip actions] Add a dictionary for Encryption public keys (Grasscutters#1862) Refactor handbook generation to not use naked textmap getter Accept resource enums of form "1" Update ru-RU.json (Grasscutters#1855) Version 1.4.1-dev [skip actions] Version 1.4.0 Fix whitespace [skip actions] [BREAKING] Item Usage Overhaul Updated MAX_FRIENDS (Grasscutters#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" (Grasscutters#1850) fix: Solar Isotoma Elevator doesn't work in multiplayer mode (Grasscutters#1848) fix: ConcurrentModificationError by removing gadget (Grasscutters#1849) Add DynamicFloat class fix: albedo elevator doesn't work (Grasscutters#1845) Update GM Handbook with Spincrystal names and Monster strings feat: unlock homeworld bgm and set homeworld bgm. (Grasscutters#1844) Flatten language translation keys in-memory feat: set namecards in profile editing. (Grasscutters#1843) fix costumes are unable to be unlocked. (Grasscutters#1842) Fix food decreasing (Grasscutters#1834) Fix showing ban message box (Grasscutters#1826) Don't need full Java stacktrace on Lua errors Move Data, Plugin, Script, Packet access from Strings to Paths (Grasscutters#1839) Add `shutdown` alias to StopCommand Update Banners.json (Grasscutters#1813) [BREAKING] Deobfuscate codex field, slight refactor (Grasscutters#1809) 3.1 Support (Grasscutters#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] Version 1.3.1 Fix whitespace [skip actions] Extend spawn command (Grasscutters#1777) character and companionship exp gain to party not active character fixes Grasscutters#1787 fixed gadget hp properties and invincibility handling (Grasscutters#1773) Add support for propperly showing activity shops (Grasscutters#1774) Improve team respawn (Grasscutters#1752) Update README.md (the origin) (Grasscutters#1736) Update banners (closes Grasscutters#1760) Update zh-CN.json (Grasscutters#1762) Calculate Banner.previewPrefabPath Forbid PRs from modifying certain files Added a directive to fix some minor bugs (Grasscutters#1744) remove accidentally committed symlink Version 1.3.1-dev [skip actions]
Fix whitespace [skip actions] Fix ambiguous command regexes feat: set emoji collection in chat screen (Grasscutters#1864) feat: set friend enter home option (Grasscutters#1860) Add a dictionary for Encryption public keys (Grasscutters#1862) Refactor handbook generation to not use naked textmap getter Accept resource enums of form "1" Update ru-RU.json (Grasscutters#1855) Version 1.4.1-dev [skip actions] Version 1.4.0 Fix whitespace [skip actions] [BREAKING] Item Usage Overhaul Updated MAX_FRIENDS (Grasscutters#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" (Grasscutters#1850) fix: Solar Isotoma Elevator doesn't work in multiplayer mode (Grasscutters#1848) fix: ConcurrentModificationError by removing gadget (Grasscutters#1849) Add DynamicFloat class fix: albedo elevator doesn't work (Grasscutters#1845) Update GM Handbook with Spincrystal names and Monster strings feat: unlock homeworld bgm and set homeworld bgm. (Grasscutters#1844) Flatten language translation keys in-memory feat: set namecards in profile editing. (Grasscutters#1843) fix costumes are unable to be unlocked. (Grasscutters#1842) Fix food decreasing (Grasscutters#1834) Fix showing ban message box (Grasscutters#1826) Don't need full Java stacktrace on Lua errors Move Data, Plugin, Script, Packet access from Strings to Paths (Grasscutters#1839) Add `shutdown` alias to StopCommand Update Banners.json (Grasscutters#1813) [BREAKING] Deobfuscate codex field, slight refactor (Grasscutters#1809) 3.1 Support (Grasscutters#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] Version 1.3.1 Fix whitespace [skip actions] Extend spawn command (Grasscutters#1777) character and companionship exp gain to party not active character fixes Grasscutters#1787 fixed gadget hp properties and invincibility handling (Grasscutters#1773) Add support for propperly showing activity shops (Grasscutters#1774) Improve team respawn (Grasscutters#1752) Update README.md (the origin) (Grasscutters#1736) Update banners (closes Grasscutters#1760) Update zh-CN.json (Grasscutters#1762) Calculate Banner.previewPrefabPath Forbid PRs from modifying certain files Added a directive to fix some minor bugs (Grasscutters#1744) remove accidentally committed symlink Version 1.3.1-dev [skip actions]
Fix whitespace [skip actions] Remove constellation charge and talent level bonuses from db Fix ambiguous command regexes feat: set emoji collection in chat screen (Grasscutters#1864) feat: set friend enter home option (Grasscutters#1860) Add a dictionary for Encryption public keys (Grasscutters#1862) Refactor handbook generation to not use naked textmap getter Accept resource enums of form "1" Update ru-RU.json (Grasscutters#1855) Version 1.4.1-dev [skip actions] Version 1.4.0 Fix whitespace [skip actions] [BREAKING] Item Usage Overhaul Updated MAX_FRIENDS (Grasscutters#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" (Grasscutters#1850) fix: Solar Isotoma Elevator doesn't work in multiplayer mode (Grasscutters#1848) fix: ConcurrentModificationError by removing gadget (Grasscutters#1849) Add DynamicFloat class fix: albedo elevator doesn't work (Grasscutters#1845) Update GM Handbook with Spincrystal names and Monster strings feat: unlock homeworld bgm and set homeworld bgm. (Grasscutters#1844) Flatten language translation keys in-memory feat: set namecards in profile editing. (Grasscutters#1843) fix costumes are unable to be unlocked. (Grasscutters#1842) Fix food decreasing (Grasscutters#1834) Fix showing ban message box (Grasscutters#1826) Don't need full Java stacktrace on Lua errors Move Data, Plugin, Script, Packet access from Strings to Paths (Grasscutters#1839) Add `shutdown` alias to StopCommand Update Banners.json (Grasscutters#1813) [BREAKING] Deobfuscate codex field, slight refactor (Grasscutters#1809) 3.1 Support (Grasscutters#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] Version 1.3.1 Fix whitespace [skip actions] Extend spawn command (Grasscutters#1777) character and companionship exp gain to party not active character fixes Grasscutters#1787 fixed gadget hp properties and invincibility handling (Grasscutters#1773) Add support for propperly showing activity shops (Grasscutters#1774) Improve team respawn (Grasscutters#1752) Update README.md (the origin) (Grasscutters#1736) Update banners (closes Grasscutters#1760) Update zh-CN.json (Grasscutters#1762) Calculate Banner.previewPrefabPath Forbid PRs from modifying certain files Added a directive to fix some minor bugs (Grasscutters#1744) remove accidentally committed symlink Version 1.3.1-dev [skip actions]
Fix whitespace [skip actions] Change logging level on item use from info to debug feat:cooking food ingredient(aka:compound) implementation (Grasscutters#1858) Remove constellation charge and talent level bonuses from db Fix ambiguous command regexes feat: set emoji collection in chat screen (Grasscutters#1864) feat: set friend enter home option (Grasscutters#1860) Add a dictionary for Encryption public keys (Grasscutters#1862) Refactor handbook generation to not use naked textmap getter Accept resource enums of form "1" Update ru-RU.json (Grasscutters#1855) Version 1.4.1-dev [skip actions] Version 1.4.0 Fix whitespace [skip actions] [BREAKING] Item Usage Overhaul Updated MAX_FRIENDS (Grasscutters#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" (Grasscutters#1850) fix: Solar Isotoma Elevator doesn't work in multiplayer mode (Grasscutters#1848) fix: ConcurrentModificationError by removing gadget (Grasscutters#1849) Add DynamicFloat class fix: albedo elevator doesn't work (Grasscutters#1845) Update GM Handbook with Spincrystal names and Monster strings feat: unlock homeworld bgm and set homeworld bgm. (Grasscutters#1844) Flatten language translation keys in-memory feat: set namecards in profile editing. (Grasscutters#1843) fix costumes are unable to be unlocked. (Grasscutters#1842) Fix food decreasing (Grasscutters#1834) Fix showing ban message box (Grasscutters#1826) Don't need full Java stacktrace on Lua errors Move Data, Plugin, Script, Packet access from Strings to Paths (Grasscutters#1839) Add `shutdown` alias to StopCommand Update Banners.json (Grasscutters#1813) [BREAKING] Deobfuscate codex field, slight refactor (Grasscutters#1809) 3.1 Support (Grasscutters#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] Version 1.3.1 Fix whitespace [skip actions] Extend spawn command (Grasscutters#1777) character and companionship exp gain to party not active character fixes Grasscutters#1787 fixed gadget hp properties and invincibility handling (Grasscutters#1773) Add support for propperly showing activity shops (Grasscutters#1774) Improve team respawn (Grasscutters#1752) Update README.md (the origin) (Grasscutters#1736) Update banners (closes Grasscutters#1760) Update zh-CN.json (Grasscutters#1762) Calculate Banner.previewPrefabPath Forbid PRs from modifying certain files Added a directive to fix some minor bugs (Grasscutters#1744) remove accidentally committed symlink Version 1.3.1-dev [skip actions]
Fix whitespace [skip actions] Refactor out some EntrySets send CompoundDataNotify on Login;fix spelling mistakes. (Grasscutters#1869) Change logging level on item use from info to debug feat:cooking food ingredient(aka:compound) implementation (Grasscutters#1858) Remove constellation charge and talent level bonuses from db Fix ambiguous command regexes feat: set emoji collection in chat screen (Grasscutters#1864) feat: set friend enter home option (Grasscutters#1860) Add a dictionary for Encryption public keys (Grasscutters#1862) Refactor handbook generation to not use naked textmap getter Accept resource enums of form "1" Update ru-RU.json (Grasscutters#1855) Version 1.4.1-dev [skip actions] Version 1.4.0 Fix whitespace [skip actions] [BREAKING] Item Usage Overhaul Updated MAX_FRIENDS (Grasscutters#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" (Grasscutters#1850) fix: Solar Isotoma Elevator doesn't work in multiplayer mode (Grasscutters#1848) fix: ConcurrentModificationError by removing gadget (Grasscutters#1849) Add DynamicFloat class fix: albedo elevator doesn't work (Grasscutters#1845) Update GM Handbook with Spincrystal names and Monster strings feat: unlock homeworld bgm and set homeworld bgm. (Grasscutters#1844) Flatten language translation keys in-memory feat: set namecards in profile editing. (Grasscutters#1843) fix costumes are unable to be unlocked. (Grasscutters#1842) Fix food decreasing (Grasscutters#1834) Fix showing ban message box (Grasscutters#1826) Don't need full Java stacktrace on Lua errors Move Data, Plugin, Script, Packet access from Strings to Paths (Grasscutters#1839) Add `shutdown` alias to StopCommand Update Banners.json (Grasscutters#1813) [BREAKING] Deobfuscate codex field, slight refactor (Grasscutters#1809) 3.1 Support (Grasscutters#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] Version 1.3.1 Fix whitespace [skip actions] Extend spawn command (Grasscutters#1777) character and companionship exp gain to party not active character fixes Grasscutters#1787 fixed gadget hp properties and invincibility handling (Grasscutters#1773) Add support for propperly showing activity shops (Grasscutters#1774) Improve team respawn (Grasscutters#1752) Update README.md (the origin) (Grasscutters#1736) Update banners (closes Grasscutters#1760) Update zh-CN.json (Grasscutters#1762) Calculate Banner.previewPrefabPath Forbid PRs from modifying certain files Added a directive to fix some minor bugs (Grasscutters#1744) remove accidentally committed symlink Version 1.3.1-dev [skip actions]
Fix whitespace [skip actions] Fix gacha avatars (fixes Grasscutters#1870) Refactor out some EntrySets send CompoundDataNotify on Login;fix spelling mistakes. (Grasscutters#1869) Change logging level on item use from info to debug feat:cooking food ingredient(aka:compound) implementation (Grasscutters#1858) Remove constellation charge and talent level bonuses from db Fix ambiguous command regexes feat: set emoji collection in chat screen (Grasscutters#1864) feat: set friend enter home option (Grasscutters#1860) Add a dictionary for Encryption public keys (Grasscutters#1862) Refactor handbook generation to not use naked textmap getter Accept resource enums of form "1" Update ru-RU.json (Grasscutters#1855) Version 1.4.1-dev [skip actions] Version 1.4.0 Fix whitespace [skip actions] [BREAKING] Item Usage Overhaul Updated MAX_FRIENDS (Grasscutters#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" (Grasscutters#1850) fix: Solar Isotoma Elevator doesn't work in multiplayer mode (Grasscutters#1848) fix: ConcurrentModificationError by removing gadget (Grasscutters#1849) Add DynamicFloat class fix: albedo elevator doesn't work (Grasscutters#1845) Update GM Handbook with Spincrystal names and Monster strings feat: unlock homeworld bgm and set homeworld bgm. (Grasscutters#1844) Flatten language translation keys in-memory feat: set namecards in profile editing. (Grasscutters#1843) fix costumes are unable to be unlocked. (Grasscutters#1842) Fix food decreasing (Grasscutters#1834) Fix showing ban message box (Grasscutters#1826) Don't need full Java stacktrace on Lua errors Move Data, Plugin, Script, Packet access from Strings to Paths (Grasscutters#1839) Add `shutdown` alias to StopCommand Update Banners.json (Grasscutters#1813) [BREAKING] Deobfuscate codex field, slight refactor (Grasscutters#1809) 3.1 Support (Grasscutters#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] Version 1.3.1 Fix whitespace [skip actions] Extend spawn command (Grasscutters#1777) character and companionship exp gain to party not active character fixes Grasscutters#1787 fixed gadget hp properties and invincibility handling (Grasscutters#1773) Add support for propperly showing activity shops (Grasscutters#1774) Improve team respawn (Grasscutters#1752) Update README.md (the origin) (Grasscutters#1736) Update banners (closes Grasscutters#1760) Update zh-CN.json (Grasscutters#1762) Calculate Banner.previewPrefabPath Forbid PRs from modifying certain files Added a directive to fix some minor bugs (Grasscutters#1744) remove accidentally committed symlink Version 1.3.1-dev [skip actions]
* add missing EntityTypes * small command refactorings and improvements * move common command patterns and methods to CommandHelpers * let the spawn command detect the entityType instead of spawning every entity as EntityVehicle * add extra options for spawning gadgets for better debuging and testing * More spawn command additions and cleanups+EntityVehicle changes * Moved remaining patterns from GiveCommand and ClearCommand to CommandHelpers * Added patterns for hp, maxhp, atk, def and (monster)ai for the spawn command * Moved intParam parsing via regex to the CommandHelpers * Read most of EntityVehicle stats from the ConfigGadget instead of hardcoding them Co-authored-by: hartie95 <mail@hartie95.de>
Fix whitespace [skip actions] Extend spawn command (#1777) character and companionship exp gain to party not active character fixes #1787 fixed gadget hp properties and invincibility handling (#1773) Add support for propperly showing activity shops (#1774) Improve team respawn (#1752) Update README.md (the origin) (#1736) Update banners (closes #1760) Update zh-CN.json (#1762) Calculate Banner.previewPrefabPath Forbid PRs from modifying certain files Added a directive to fix some minor bugs (#1744) remove accidentally committed symlink Version 1.3.1-dev [skip actions]
Description
This extends the spawn command to allow better testing and debuging, while it also lets it use the same pattern as give and clear.
It also fixes the type of non vehicle entities spawned via spawn Command, adds some missing EntityTypes and moves some common patterns and methods from some commands to a new CommandHelpers class.
Type of changes
Checklist: