All checks were successful
MANDATORY: Build project (Pflib Net) TeamCity build finished
Reviewed-on: #7 Co-authored-by: Malachy Byrne <malachybyrne1@gmail.com> Co-committed-by: Malachy Byrne <malachybyrne1@gmail.com>
20 lines
400 B
C#
20 lines
400 B
C#
using System.Collections.Generic;
|
|
using pflib_net.damage;
|
|
|
|
namespace pflib_net.Tests.damage;
|
|
|
|
public static class DamageUtils
|
|
{
|
|
public static Damage CreateDamage(
|
|
int damage = 20,
|
|
ISet<string> traits = null,
|
|
int? crit = null
|
|
)
|
|
{
|
|
traits ??= new HashSet<string>
|
|
{
|
|
"fire"
|
|
};
|
|
return new Damage(damage, traits, crit);
|
|
}
|
|
} |