Open int-ua opened 3 years ago
in cata:tiles::draw_hit_frame()
we have a call to:
draw_from_id_string( hit_entity_id, C_HIT_ENTITY, empty_string, hit_pos, 0, 0,
lit_level::LIT, false );
hit_entity_id
can either be the id of a monster (in the case of game::draw_hit_mon()
being called), or the id of a base player sprite (in the case of game::draw_hit_player
being called)
the thing that draws my attention here is C_HIT_ENTITY
is the sprite category, and i'm not entirely sure how it plays into things.
i can't find any evidence of anything else being drawn that is going to be specific to when the creature is regenerating.
Thank you. Were you able to reproduce this problem in latest experimental?
void game::draw_hit_mon( const tripoint &p, const monster &m, const bool dead )
...
tilecontext->init_draw_hit( p, m.type->id.str() );
void cata_tiles::init_draw_hit( const tripoint &p, std::string name )
...
hit_entity_id = std::move( name );
void cata_tiles::draw_hit_frame()
{
...
draw_from_id_string( hit_entity_id, C_HIT_ENTITY, empty_string, hit_pos, 0, 0,
lit_level::LIT, false );
It tried to draw creature type? Why?
huh. i glossed over the type part there. that does seem weird, but it gives something testable.
https://discord.com/channels/598523535169945603/598529174302490644/791030023737704508
It's a monster type id. Monsters don't have ids, but they have types which have ids
I'm still confused but I guess we should try unknown_mon_frog_mother
? Or unknown_MONSTER
(I don't think so, but, again: confused) ? I'll try that now.
Defining mon_frog_mother
worked. So that's not about regenerating creatures, it's about creatures that don't have a sprite yet. And the upstream bug is that the ASCII fallback is not displayed. Looks like it's not displayed even if creature has a sprite through looks_like
/copy-from
connection (judging from hitting one of the pupating zombie types).
Closing as it's an upstream issue.
It still affects Ultica so I've decided to re-open it until upstream is fixed.
Like Frog mother or Shoggoth. I cannot find what the id is in CDDA files.