forked from Shardstone/trail-into-darkness
Added a bunch of utilities and modfief the character data structue
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Nox.Game {
|
||||
bool TryAddModifier(CharacterDefinition character, string modiferId);
|
||||
}
|
||||
|
||||
public enum ModifierType {
|
||||
public enum ModifierRole {
|
||||
None,
|
||||
Flat,
|
||||
Addition,
|
||||
@@ -20,8 +20,11 @@ namespace Nox.Game {
|
||||
|
||||
[Serializable]
|
||||
public sealed class ModifierDefinition {
|
||||
public ModifierIds id;
|
||||
public ModifierType type;
|
||||
[ReadOnlyField]
|
||||
public System.Guid id = Guid.NewGuid();
|
||||
public StatType statType;
|
||||
public AttributeType attributeType;
|
||||
public ModifierRole role;
|
||||
public float value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user