Fix C, more enemies and less scaling for enemies.

This commit is contained in:
2026-07-09 20:02:37 +02:00
parent 1e53968c36
commit e3ea42c93e
24 changed files with 1582 additions and 1113 deletions
+23 -2
View File
@@ -26,7 +26,8 @@ namespace KernelPanic.Combat
bool trueDamage = false,
StatusType statusType = StatusType.MemoryLeak,
int statusStacks = 0,
int statusDuration = -1)
int statusDuration = -1,
string valueTextOverride = null)
{
Kind = kind;
MinValue = minValue;
@@ -38,6 +39,7 @@ namespace KernelPanic.Combat
StatusType = statusType;
StatusStacks = statusStacks;
StatusDuration = statusDuration;
ValueTextOverride = valueTextOverride;
}
public EnemyIntentKind Kind { get; }
@@ -50,8 +52,27 @@ namespace KernelPanic.Combat
public StatusType StatusType { get; }
public int StatusStacks { get; }
public int StatusDuration { get; }
public string ValueTextOverride { get; }
public string ValueText => MinValue == MaxValue ? MinValue.ToString() : $"{MinValue}-{MaxValue}";
public string ValueText => string.IsNullOrWhiteSpace(ValueTextOverride)
? MinValue == MaxValue ? MinValue.ToString() : $"{MinValue}-{MaxValue}"
: ValueTextOverride;
public string DisplayText => $"{IconKey} {DisplayLabel} {ValueText}";
public EnemyIntent WithValues(int minValue, int maxValue, string displayLabel = null, string iconKey = null, string valueTextOverride = null)
{
return new EnemyIntent(
Kind,
minValue,
maxValue,
DamageType,
displayLabel ?? DisplayLabel,
iconKey ?? IconKey,
TrueDamage,
StatusType,
StatusStacks,
StatusDuration,
valueTextOverride);
}
}
}