Skip to content

Commit

Permalink
InitCreatureModelGraphics
Browse files Browse the repository at this point in the history
  • Loading branch information
walt253 authored Nov 14, 2024
1 parent 302d608 commit 3a52084
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/config_creature.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,17 @@ void check_and_auto_fix_stats(void)
SYNCDBG(9,"Finished");
}

void init_creature_model_graphics(void)
{
for (int i = 0; i < CREATURE_TYPES_MAX; i++)
{
for (int k = 0; k < CREATURE_GRAPHICS_INSTANCES; k++)
{
game.conf.crtr_conf.creature_graphics[i][k] = -1;
}
}
}

TbBool is_creature_model_wildcard(ThingModel crmodel)
{
if((crmodel == CREATURE_ANY) || (crmodel == CREATURE_NOT_A_DIGGER) || (crmodel == CREATURE_DIGGER))
Expand Down
1 change: 1 addition & 0 deletions src/config_creature.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ struct CreatureStats *creature_stats_get(ThingModel crstat_idx);
struct CreatureStats *creature_stats_get_from_thing(const struct Thing *thing);
TbBool creature_stats_invalid(const struct CreatureStats *crstat);
void check_and_auto_fix_stats(void);
void init_creature_model_graphics(void);
const char *creature_code_name(ThingModel crmodel);
long creature_model_id(const char * name);
const char *creature_own_name(const struct Thing *creatng);
Expand Down

0 comments on commit 3a52084

Please sign in to comment.