Skip to content
This repository was archived by the owner on Aug 14, 2019. It is now read-only.

PlayerStatsSystem.cs

Erik edited this page Apr 22, 2019 · 1 revision
Dependencies (What do I need to include to use this script in another projec?):
Public Methods:
  • ApplyAugments() - Re-initializes the character and applies all augments.
Public Events:
  • StatsChanged - trigger point for event
Configurable Fields:
  • None
General Overview:

This script first Hooks the Player's base stats into its components, then it hooks the Weapon's base stats into its components. Then it iterates through all StatAugment components and applies augments in order of priority. Then it applies PlayerUpgrades. This effectively recalculates the player's stats "from the ground up" every time there is a stat change while still allowing multiple different scripts to act as effectors.

Clone this wiki locally