diff options
author | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-25 16:29:19 +0100 |
---|---|---|
committer | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-25 16:29:19 +0100 |
commit | e8bc1eab9a45b8893701e3acbd008fe259c53a4c (patch) | |
tree | eac29a2ee78245122b48dd8ec4fdfd6581d97f98 /gst/info.h | |
parent | 83c2ceb9cbe890ec50399b6e4908218477a3088f (diff) |
before was messy, now is MACRO(MACRO(MACRO(MACRO(clean))))
Diffstat (limited to 'gst/info.h')
-rw-r--r-- | gst/info.h | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -24,6 +24,7 @@ typedef struct { float damage[7]; float cooldown; + float range; float aoe; float knockback; float damage_battery; @@ -152,8 +153,8 @@ typedef struct { info_brain brains[32]; int brainslen; - stats_comp *stats[5]; - int statslen[5]; + stats_comp *stats[6]; + int statslen[6]; } infos; void info_unit_init (info_unit *u); @@ -173,6 +174,13 @@ float info_unit_get_maxrange(infos *info, info_unit *u); float info_unit_get_armor(infos *info, info_unit *u, int d); float info_unit_get_cost(infos *info, info_unit *u); +int stats_frame_sprintf (infos *info, stats_frame *frame, char arr[][64]); +int stats_weapon_sprintf (infos *info, stats_weapon *weap, char arr[][64]); +void stats_unit_compute (infos *info, info_unit *u, stats_unit *base); + +float stats_compute_damage (stats_weapon *weapon, stats_frame *frame, + float *red); + void info_load (infos *info); void info_save_templates (infos *info, char *filename); |