Please enable JavaScript.
Coggle requires JavaScript to display documents.
Character System, AddEffect(StatEffect)
Accept StatEffects from Actor.…
-
-
-
-
-
Stat System
Holds all the stats for the Actor. Handles adding, removing and updating effects to the stats as well as notifying anything listening for changes
Stats (Dictionary<StatName, Stat>
-
-
-
-
-
InitDecorators()
Transfers DecoratorSets to Lookups so that the lists of Decorators can all be accessed at once.
ProcessStatEffects(StatEffects[])
Accepts an array of StatEffects from an Ability. Loops through the array calling CalculateEffectValue() to apply TargetDecorators to the values of the StatEffect and passes the final result to StatSystem.AddEffect()
-
Decorator Set (Scriptable Object)
Used to modify the base values of Effects and Stats depending on the Stats of the appropriate Actor
-
StatEvents (Dictionary<StatName, IntUnityEvent>)
-
Actor
Holds all information for a Character in the scene. Holds the Characters Actor and Target Decorator sets. Also holds references to GameData and SceneData
Effect (ScriptableObject)
Used to create modifiers for Stats and Statuses. Made up of a series of Effectors.
-
ModifierDecorators (Lookup<ControllingItem, Decorator>)
Effect Decorator (Scriptable Object)
Base class that holds the information on how an item should be decorated