diff --git a/horse/character.kk b/horse/character.kk index 4d7d09c..9c3abbb 100644 --- a/horse/character.kk +++ b/horse/character.kk @@ -163,7 +163,7 @@ pub fun character/from-id(id: int): maybe _ -> Nothing // Get the ID for a character. -pub fun character/id(c: character): int +pub fun character/character-id(c: character): int match c Special-Week -> 1001 Silence-Suzuka -> 1002 diff --git a/horsegen/character.kk.template b/horsegen/character.kk.template index 91dc27f..0761eae 100644 --- a/horsegen/character.kk.template +++ b/horsegen/character.kk.template @@ -29,7 +29,7 @@ pub fun character/from-id(id: int): maybe _ -> Nothing // Get the ID for a character. -pub fun character/id(c: character): int +pub fun character/character-id(c: character): int match c {{- range $uma := $.Characters }} {{ kkenum $uma.Name }} -> {{ $uma.ID }}