added logger to character creation, default character setup, gameplay flow and textmeshpro stuff

This commit is contained in:
Sebastian Bularca
2026-04-05 21:48:06 +02:00
parent bb75524cd8
commit c2bbf30a73
300 changed files with 73925 additions and 184 deletions

View File

@@ -1,6 +1,7 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using ZLinq;
using UnityEngine;
@@ -34,6 +35,15 @@ namespace Nox.Game {
Perception
}
public enum CombatScoreType {
None,
ATK,
DEF,
INIT,
SPD,
RES
}
public enum CharacterRole {
None,
Protagonist,
@@ -93,6 +103,10 @@ namespace Nox.Game {
public int GetValue(AttributeType attributeType) {
return attributes.AsValueEnumerable().First(attr => attr.attribute == attributeType).value;
}
public override string ToString() {
return $"Attributes: {string.Join(", ", attributes.Select(attr => $"{attr.attribute}: {attr.value}"))}";
}
}
[Serializable]
@@ -106,6 +120,10 @@ namespace Nox.Game {
var match = stats.AsValueEnumerable().FirstOrDefault(stat => stat.stat == statType);
return match?.value ?? 0;
}
public override string ToString() {
return $"Stats: {string.Join(", ", stats.Select(stat => $"{stat.stat}: {stat.value}"))}";
}
}
[Serializable]