Files
Project-M/Assets/_Project/Scripts/Simulation/Combat/StatIds.cs
T
kronic 9f61f7c6fe LANTERN kit into the shipping scene + frame rename (audit H2/M4)
H2 was the audit's sharpest finding: in Game.unity every player spawned
with four ability sockets pointing at SparkIds the baked AbilityDatabase
did not contain, so all four resolved to Damage=0 Range=0 Cooldown=0.
Melee and dash were the only working combat verbs in the built game.
Cause: the 5 LANTERN Sparks were added to GymSub.unity and never to
Gameplay.unity.

- Gameplay.unity's AbilityDatabaseAuthoring now carries all 9 defs (the
  4 legacy ids keep their numbers; Sparks are 5-9) with their effect
  prefabs. Live-verified in Play: sockets now read
  Vortex 8dmg/6range/420cd, Blink 20range/1cd, Hook & Pull
  15dmg/25range/120cd, Light Zone 6dmg/5range/480cd.
- Removed 6 orphaned authoring GameObjects the purge left behind in the
  subscene (StorageSpawner, StructureCatalog, ItemDatabase,
  SpitterProjectileConfig, BoonCatalog, MetaCatalog) and the RoomDressing
  object in Game.unity — the latter is what scattered 47 Synty desert
  props into the seabed murk.
- Deleted 4 now-unreferenced prefabs: EnemySpit, Pylon, Storage, Wall.
- Frame rename (M4): FrameKind.Warrior/Ranger -> Bathynaut/Harpooner,
  93 identifier sites. Byte values pinned (2/3), so no ghost-hash or save
  impact. The menu said "Warrior"/"Ranger" to players three weeks after
  the frames were renamed in design.
- Menu now reads LANTERN / "Light is territory — co-op descent" instead
  of "PROJECT M" / "Frontier colony — co-op" (the Awakening-Engine
  tagline, two directions stale).
- Removed the "Replay Tutorial" button and the Settings ONBOARDING
  section: both drove coach-marks DR-051 deleted. The settings fields
  still round-trip so existing settings files load unchanged.

All four project scenes + all prefabs verified free of missing scripts.
Server measured at 59.6 ticks/s against a 60 Hz target. 295/295 green.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-07 13:11:58 -07:00

57 lines
2.4 KiB
C#

namespace ProjectM.Simulation
{
/// <summary>Stable, index-independent key for an authored ability definition in the AbilityDatabase blob.</summary>
public enum AbilityId : byte
{
None = 0,
Primary = 1,
FastLight = 2,
SlowHeavy = 3,
WarriorCone = 4, // Slice 2: the Bathynaut's aim-directed short-range cone secondary (Fire slot)
// LANTERN Phase 1 Sparks (the gym's first socketables):
DecoyWisp = 5, // Aoe/spawn: a decoy ghost that draws aggro
HookPull = 6, // Projectile + pull: the Harpooner reel (yanks the hit target in)
Vortex = 7, // Aoe/zone: a timed pulling/slowing area
Blink = 8, // Movement: a second dash (BlinkSystem)
LightZone = 9, // Aoe/zone: a persistent light/damage zone
}
/// <summary>Stable key for an authored character-stats definition in the AbilityDatabase blob — the
/// frame/class id (a LANTERN suit-frame IS the class; renamed from the pre-LANTERN <c>CharacterId</c>,
/// byte values unchanged so serialized definitions/saves never re-mean).</summary>
public enum FrameKind : byte
{
None = 0,
Default = 1,
Bathynaut = 2, // Bathynaut-lineage melee-anchor bruiser (tankier, slower, longer/harder melee)
Harpooner = 3, // Harpooner-lineage ranged-anchor (squishier, faster, longer projectile range; weaker melee)
}
/// <summary>
/// Which base stat a <see cref="StatModifier"/> targets. Replicated as a raw byte on the modifier
/// buffer to keep the generated ghost serializer trivial; mapped back to this enum only in StatMath.
/// </summary>
public enum StatTarget : byte
{
Damage = 0,
CooldownTicks = 1,
Range = 2,
ProjectileSpeed = 3,
AutoTargetRange = 4,
AutoTargetConeRadians = 5,
MoveSpeed = 6,
TurnRate = 7,
MaxHealth = 8,
MeleeDamage = 9, // Slice 2: melee combo + Bathynaut cone damage axis (folded onto TuningConfig.MeleeDamage)
MeleeRange = 10, // Slice 2: melee reach axis (Bathynaut longer, Harpooner shorter)
}
/// <summary>How a <see cref="StatModifier"/> combines into the effective stat.</summary>
public enum ModOp : byte
{
Flat = 0, // additive: + Value
PercentAdd = 1, // additive percent, pooled into (1 + sum Value)
PercentMult = 2, // multiplicative percent, product of (1 + Value)
}
}