forked from Shardstone/trail-into-darkness
Moar refactoring
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Nox.Game {
|
||||
}
|
||||
|
||||
public EntityAttributes Create(EntityAttributes entityAttributes) {
|
||||
if(entityAttributes.attributes.All(a => a.value != 0)) {
|
||||
if(entityAttributes.attributes.Any(a => a.value <= 0)) {
|
||||
throw new ArgumentOutOfRangeException( "attributes cannot be zero or negative.", new ArgumentException() );
|
||||
}
|
||||
//TODO: Handle attributes modifiers and perks
|
||||
|
||||
Reference in New Issue
Block a user