So apparently a bunch of the monsters introduced in the bugbear invasion haven't been added to the monsters database. I know a lot of the spading is incomplete, but I think it's better to have incomplete data than no data at all.
I haven't looked at anything yet, but it appears if you encounter an unknown monster KoLmafia create a monster on the fly for you, for example:
Before encountering a black ops bugbear.
After encountering a black ops bugbear.
The trouble is, this only lasts for the session, so it would produce inconsistent behaviour if you referred to a $monster[] not in monsters.txt in a combat consult script, as I did here.
I propose that, even if we don't know how much HP a monster may have etc. we should still be adding the data that we do know to monsters.txt, which would (at minimum) include a name. That way we can refer to the monster directly in ASH instead of having to do last_monster().to_string() == "black ops bugbear".
I haven't looked at anything yet, but it appears if you encounter an unknown monster KoLmafia create a monster on the fly for you, for example:
Before encountering a black ops bugbear.
Code:
> ash $monster[black ops bugbear]
Bad monster value: "black ops bugbear" ()
Returned: void
After encountering a black ops bugbear.
Code:
> ash $monster[black ops bugbear]
Returned: black ops bugbear
base_hp => 0
base_attack => 0
base_defense => 0
base_initiative => 0
attack_element => none
defense_element => none
min_meat => 0
max_meat => 0
base_mainstat_exp => 0.0
phylum => none
poison => none
boss => false
The trouble is, this only lasts for the session, so it would produce inconsistent behaviour if you referred to a $monster[] not in monsters.txt in a combat consult script, as I did here.
I propose that, even if we don't know how much HP a monster may have etc. we should still be adding the data that we do know to monsters.txt, which would (at minimum) include a name. That way we can refer to the monster directly in ASH instead of having to do last_monster().to_string() == "black ops bugbear".