Use gender symbols in the player characters' names.

I spent longer than I should have deliberating, but in the end, it came
down to the fact that searching for "Player" won't fuzzy-match the long
versions.
This commit is contained in:
Lynn "Zhorken" Vaughan 2012-07-26 14:45:52 -04:00
parent dc5279cd7a
commit 4597b970b0
3 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,6 @@
warrior_id,local_language_id,name warrior_id,local_language_id,name
1,9,Player (male) 1,9,Player
2,9,Player (female) 2,9,Player
3,9,Nobunaga 3,9,Nobunaga
4,9,Oichi 4,9,Oichi
5,9,Hideyoshi 5,9,Hideyoshi

1 warrior_id local_language_id name
2 1 9 Player (male) Player ♂
3 2 9 Player (female) Player ♀
4 3 9 Nobunaga
5 4 9 Oichi
6 5 9 Hideyoshi

View file

@ -1,6 +1,6 @@
id,identifier,gender_id id,identifier,gender_id
1,player-male,2 1,player-m,2
2,player-female,1 2,player-f,1
3,nobunaga,2 3,nobunaga,2
4,oichi,1 4,oichi,1
5,hideyoshi,2 5,hideyoshi,2

1 id identifier gender_id
2 1 player-male player-m 2
3 2 player-female player-f 1
4 3 nobunaga 2
5 4 oichi 1
6 5 hideyoshi 2

View file

@ -334,14 +334,14 @@ class ConquestWarrior(TableBase):
__singlename__ = 'warrior' __singlename__ = 'warrior'
id = Column(Integer, primary_key=True, nullable=False, autoincrement=True, id = Column(Integer, primary_key=True, nullable=False, autoincrement=True,
info=dict(description='An ID for this warrior.')) info=dict(description='An ID for this warrior.'))
identifier = Column(Unicode(13), nullable=False, identifier = Column(Unicode(10), nullable=False,
info=dict(description='A readable identifier for this warrior.', format='identifier')) info=dict(description='A readable identifier for this warrior.', format='identifier'))
gender_id = Column(Integer, ForeignKey('genders.id'), nullable=False, gender_id = Column(Integer, ForeignKey('genders.id'), nullable=False,
info=dict(description="The ID of the warrior's gender.")) info=dict(description="The ID of the warrior's gender."))
create_translation_table('conquest_warrior_names', ConquestWarrior, 'names', create_translation_table('conquest_warrior_names', ConquestWarrior, 'names',
relation_lazy='joined', relation_lazy='joined',
name=Column(Unicode(15), nullable=False, index=True, name=Column(Unicode(10), nullable=False, index=True,
info=dict(description='The name.', format='plaintext', official=True)) info=dict(description='The name.', format='plaintext', official=True))
) )