Anders Jenbo
bb2e189327
Convert _sfx_id in to class enum
2 years ago
Gleb Mazovetskiy
4a02188588
Fix -Wmissing-field-initializers in playerdat.cpp
...
```
playerdat.cpp:262:1: warning: missing initializer for member ‘devilution::PlayerData::skill’ [-Wmissing-field-initializers]
262 | };
```
2 years ago
ephphatha
4e6517e54c
load starting loadout dynamically
3 years ago
ephphatha
55a21b7467
Move the base hit amount to a table in playerData.cpp
...
Bringing blockBonus along for the ride as it seems to fit (and renaming to align with the current convention)
3 years ago
ephphatha
5d50b5520d
Add PlayerData lookup helper to avoid manual casts
...
This lets us remove the PlayersData global, and we can use a helper in the player class for convenience.
3 years ago
ephphatha
78529414fb
Move asset path to PlayersSpriteData
...
It's closely related to the values in that table so seems a better fit than PlayerData
3 years ago
Gleb Mazovetskiy
e090c8bf31
Extract some player attributes to data files
3 years ago
ephphatha
32c3316743
Load experience data from file
...
Also added an iterator based API, though it's not useful for this use-case. Might be nice in the future?
The field/record iterators is single-pass input iterators with shared state.
To avoid rescanning fields unnecessarily parseInt currently can only be called once, it would be possible to make these iterators bidirectional with a bit of extra state (holding onto the start pointer)
Co-authored-by: Gleb Mazovetskiy <glex.spb@gmail.com>
3 years ago
ephphatha
e6890cc5cc
Move MaxCharacterLevel to playerdat and add helpers for the various uses
3 years ago
ephphatha
d92d152576
Use unsigned type for character levels
3 years ago
ephphatha
486f5ca3e8
Replace ExpLvlsTbl global with helper function
3 years ago
Eric Robinson
a2af3b5942
Refactor CreatePlayer() ( #6288 )
3 years ago
DakkJaniels
24bb409086
Remove extra entry in experience level table and cap experience at level 50 requirement ( #5782 )
3 years ago
Eric Robinson
f75f66d54b
Add `playerdat` ( #5763 )
3 years ago