mirror of
https://github.com/Kornstalx/5etools-mirror-2.github.io.git
synced 2025-10-28 20:45:35 -05:00
13 lines
250 B
JavaScript
13 lines
250 B
JavaScript
export class InitiativeTrackerConditionUtil {
|
|
static getNewRowState ({name, color, turns}) {
|
|
return {
|
|
id: CryptUtil.uid(),
|
|
entity: {
|
|
name: name ?? "",
|
|
color: color ?? MiscUtil.randomColor(),
|
|
turns: turns ?? null,
|
|
},
|
|
};
|
|
}
|
|
}
|