Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove targeting from skills * Rename armor to defense * Remove skill targetting * Add period field to permanent skill types * Abstract lowest-highest attribute strategies * Add new components to effects * Refactor execution type cast * Require modifier fields * Fix create_effect_map * Refactor Execution * Fix execution field * Fix execution * Update Muflus skills in seeds * Capitalize Defense * Remvoe wrong function * Update doc + format * Turn Components into a custom Ecto Type * General fixes * Lock ChanceToApply component between 0 and 1 * Add ChanceToApply functionality * Refactor effect_hits? * Add apply_effect and process_execution for type DealDamage * Add todo comment * Add energy regen and rename some variables for clarity * Fix choose_targets * Lowercase target_strategy pattern match * Cast energy_regen * Add missing fields to effect_map * Add energy_regen to muflus basic skill seed * Fix battle * Nest units inside initial state map * Implement skill delays * Add effect delays * Add energy_regen and delay to skills * Format seeds * Revert changes to simulator They will be merged from a different branch * Restore armor -> defense rename * Add animation_duration and animation_trigger to skills * Fix seeds * Add skill animation delays and effect delays * Replace inspects with logs * Rename format function * Uncomment character class * Update comment * Add helper unit name format function and logs on death * Update moduledoc * Update simulator module doc * Define targets on effect cast (instead of on delay end) * Delete unused parameter * Add comment * Modify log * Implement modifiers * Add attribute to modifiers * Add Execution-DealDamage tests * Add step applied for overrides * Expand DealDamage test with cases that involve delays in the basic skill * Implement Modifier expiration * Add examples to Effect attributes docs * Add delays tests * Add battle tests that involve the use of components * WIP: test with modifiers * Use ultimate skill to test modifiers * Restore logger level * Recover changes from #346 * Add name field to skills migration * Fix merge * Remove wrong log * Preload character skills on get_unit * Add comments * Remove unnecesary preloads * Add some module doc * Clarify the objective of the modifiers test * Add comments to serve as documentation * Fix merge * Muflus basic and ulti * Replace put_in with update_in * Replace Enum.any? with Map.has_key? * Handle the two ways of getting the execution data * Add unique index for skill's name field * Refactor step processing for effeccts * Add doc comment * Rename trigger_skill_effects * Refactor process_step_for_unit * Refactor battle processing to use pipes * Change the executions definition to a map array * Delete unused execution module * Refactor new_modifiers * Fix step number logs * Adapt tests to changes in effects refactor * Refactor process_step_for_effects * Delete components module and define a skills components as an array of maps. Include Heal and AddEnergy cases to the executions * Fix tests after last merge * Delete execution obsolete module * Adapt seeds and tests to the skills refactor * Add the first 15 champions skills * Some more champions skills * Complete champions skills * Misc fixes * Remove duplicate lines in effect.ex * Add skills to characters in config * Fix typo in modifiers and use atoms for effect type * apps/champions/test/support/test_utils.ex * Remove custom type for effect type and use a map * Add skills to characters.csv * Simplify validation in effect cast * Rename function to comply with elixir convention * Format json * implement fallback values in simulator * Revert typo fix as it will be fixed in #464 * Simplify how we get a skill by name in the characters config * Remove target_attributes field, replacing it with a map in the target strategies * Prevent a nil access when the skill is not found * JSON corrections and improvements * Add increasing delays to skills with multiple executions of the same kind * Add comment to explain why a function is unused --------- Co-authored-by: lotuuu <[email protected]>
- Loading branch information