Skip to content

Implemented the Multi-Skill System

GreyWulfos requested to merge GreyWulfos/lt-maker:master into master

Created a means for placing a series of different skills underneath a singular "root" skill using the Multi-Skill component. The primary use case of this component is creating skills with multiple overlapping conditions without having to assign multiple separate skills to a single unit, making projects easier to maintain as well as more readable. To ensure that these Multi-Skills behave as closely to a singular skill as possible, they possess the following properties:

  • Before adding a Skill containing the Multi-Skill component, all child skills are assigned to the unit. This prevents conditions in the root skill from interfering with the assignment of child skills to units.
  • After removing a Skill containing the Multi-Skill component, all child skills are removed from the unit. This prevents the child skills from still having an effect when the root is missing.
  • If there is a condition in the root skill, this condition is propagated to all child skills. This means a condition in the root disables the entire effect of the skill.
  • There is no method of removing child skills without removing the root skills, preventing any accidental removals of key functionality of a multiskill.

Merge request reports