dialog pick-race-abil: print pc's name + add left/right arrows

This commit is contained in:
ALONSO Laurent
2021-10-02 16:25:16 +02:00
committed by Celtic Minstrel
parent d8ab170111
commit 3dd3d3c1da
11 changed files with 103 additions and 43 deletions

View File

@@ -59,7 +59,7 @@ void cPlayer::import_legacy(legacy::pc_record_type old){
direction = eDirection(old.direction);
}
short cPlayer::get_tnl(){
short cPlayer::get_tnl() const {
short tnl = 100,store_per = 100;
// Omitting a race from this list gives it a value of 0, thanks to the defaulting implementation of operator[]
static std::map<const eRace, const int> rp = {{eRace::NEPHIL,12},{eRace::SLITH,20},{eRace::VAHNATAI,18}};

View File

@@ -171,7 +171,7 @@ public:
void import_legacy(legacy::pc_record_type old);
cPlayer(cParty& party);
cPlayer(cParty& party,ePartyPreset key,short slot);
short get_tnl();
short get_tnl() const;
void writeTo(std::ostream& file) const;
void readFrom(std::istream& file);
virtual ~cPlayer() = default;