Skip to content

fix(npcdb): align proto enum indices and add missing personality variants#8138

Merged
h0lybyte merged 1 commit intodevfrom
trunk/proto-enum-fix-1773717395
Mar 17, 2026
Merged

fix(npcdb): align proto enum indices and add missing personality variants#8138
h0lybyte merged 1 commit intodevfrom
trunk/proto-enum-fix-1773717395

Conversation

@h0lybyte
Copy link
Member

Summary

  • Set skipUnspecified: false on all npcdb codegen enums so generated Zod array indices match proto integer values — fixes off-by-one mapping bug affecting Personality, Element, CreatureFamily, MovementType, DifficultyMode, and EquipSlot
  • Add 4 missing Personality variants (Cheerful, Mysterious, Cowardly, Noble) to all Rust consumers: bevy_battle, discordsh session types, proto_bridge, battle_bridge, and all 13 flavor text match blocks in content.rs
  • Regenerate all 4 schema files (npcdb, itemdb, mapdb, questdb) via gen-all.mjs
  • Regenerate npcdb.json with corrected integer enum values

Test plan

  • cargo check -p axum-discordsh passes
  • proto_personality test extended to cover proto values 1-11
  • All 7 flavor text tests updated with new personality variants
  • CI build passes

…ants

Set skipUnspecified: false on all npcdb codegen enums so generated
array indices match proto integer values (fixes off-by-one for
Personality, Element, CreatureFamily, MovementType, DifficultyMode,
EquipSlot). Regenerate all four schema files via gen-all.mjs.

Add Cheerful, Mysterious, Cowardly, Noble personality variants to
bevy_battle::Personality, discordsh session types, proto_bridge,
battle_bridge, and all 13 flavor text match blocks in content.rs.
Extend proto_personality test to cover proto values 1-11.

Regenerate npcdb.json with corrected integer enum values.
@github-actions
Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@h0lybyte h0lybyte merged commit d171a59 into dev Mar 17, 2026
5 checks passed
@h0lybyte h0lybyte deleted the trunk/proto-enum-fix-1773717395 branch March 17, 2026 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant