Adoranda/include/stats.h

18 lines
324 B
C
Raw Normal View History

2022-01-23 00:53:07 +01:00
#pragma once
struct Stats {
char* type;
2022-01-23 00:53:07 +01:00
int atk;
int def;
int pv;
2022-04-16 01:06:24 +02:00
int spe_atk;
int spe_def;
2022-01-23 00:53:07 +01:00
int level;
int xp;
2022-01-25 22:20:10 +01:00
int max_pv;
2022-01-23 00:53:07 +01:00
};
2022-02-13 21:46:52 +01:00
void draw_stats(struct Stats stats);
void set_stats_level(struct Stats *stats);
int calc_stats(int base, int level);
void set_stats_level_from(const struct Stats *from, struct Stats *to);