horsegen: redesign character template
This commit is contained in:
@@ -16,7 +16,7 @@ val name2id: rbmap<string, skill-id> = rb-map/empty()
|
||||
|
||||
// Get the skill ID that has the given exact name.
|
||||
// Inherited skills have `" (Inherited)"` appended to their names.
|
||||
// If no skill matches the ID, the result is an invalid ID.
|
||||
// If no skill matches the name, the result is an invalid ID.
|
||||
pub fun from-name(name: string): skill-id
|
||||
name2id.lookup(name).default(Skill-id(0))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user