1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-26 19:37:40 +00:00

ru:: initial professions and stat edit screen

This commit is contained in:
Zeno Rogue
2025-07-31 17:51:37 +02:00
parent 4f455edf81
commit 283ceab505
3 changed files with 119 additions and 4 deletions

View File

@@ -176,8 +176,8 @@ struct xy {
enum class stat { str, con, wis, dex };
constexpr stat allstats[] = { stat::str, stat::con, stat::wis, stat::dex };
constexpr int qstat = 4;
constexpr array<stat, qstat> allstats = { stat::str, stat::con, stat::wis, stat::dex };
template<class T> struct statarray : array<T, qstat> {
statarray() {};
@@ -309,6 +309,7 @@ struct man : public entity {
int last_action;
int experience;
stat profession;
statarray<int> base_stats;
statdata current, next;