1. 18 Oct, 2022 1 commit
    • natsu's avatar
      Extend give command "skill level" & shortening /talent all (#1865) · 2b087380
      natsu authored
      
      
      * Extend give command "talent"
      
      * Update src/main/java/emu/grasscutter/data/excels/AvatarSkillDepotData.java
      
      Shorten IntStream for getCombatSkills
      Co-authored-by: default avatarLuke 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: default avatarLuke 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: default avatarLuke H-W <Birdulon@users.noreply.github.com>
      2b087380
  2. 17 Oct, 2022 1 commit
  3. 16 Sep, 2022 1 commit
    • Alexander Hartmann's avatar
      Extend spawn command (#1777) · 08f36195
      Alexander Hartmann authored
      
      
      * 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: default avatarhartie95 <mail@hartie95.de>
      08f36195