implemented skill system according to designdocuments
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace NightclubArcadia.Skills
|
||||
{
|
||||
public sealed class UnityRollSource : IRollSource
|
||||
{
|
||||
public int Roll(int sides)
|
||||
{
|
||||
if (sides < 1)
|
||||
{
|
||||
throw new System.ArgumentOutOfRangeException(nameof(sides));
|
||||
}
|
||||
|
||||
return Random.Range(1, sides + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user