forked from Shardstone/trail-into-darkness
a bit more work on the system to create a default character set and testable environment for that
This commit is contained in:
@@ -40,7 +40,14 @@ namespace Nox.Game {
|
||||
public int knowledge;
|
||||
public int perception;
|
||||
|
||||
public int Total => might + reflex + knowledge;
|
||||
public static EntityAttributes operator +(EntityAttributes a, EntityAttributes b) {
|
||||
return new EntityAttributes {
|
||||
might = a.might + b.might,
|
||||
reflex = a.reflex + b.reflex,
|
||||
knowledge = a.knowledge + b.knowledge,
|
||||
perception = a.perception + b.perception
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
@@ -118,8 +125,8 @@ namespace Nox.Game {
|
||||
|
||||
[Serializable]
|
||||
public sealed class PartyDefinition {
|
||||
public List<CharacterDefinition> members = new();
|
||||
public int maxPartySize;
|
||||
public List<CharacterDefinition> members = new();
|
||||
|
||||
[JsonIgnore]
|
||||
public CharacterDefinition Protagonist => members.FirstOrDefault(m => m.role == CharacterRole.Protagonist);
|
||||
|
||||
Reference in New Issue
Block a user