MCPcopy Create free account
hub / github.com/diasurgical/devilution / PrintUniqueHistory

Function PrintUniqueHistory

Source/monster.cpp:5089–5112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5087}
5088
5089void PrintUniqueHistory()
5090{
5091 int res;
5092
5093 res = monster[pcursmonst].mMagicRes & (RESIST_MAGIC | RESIST_FIRE | RESIST_LIGHTNING | IMUNE_MAGIC | IMUNE_FIRE | IMUNE_LIGHTNING);
5094 if (!res) {
5095 strcpy(tempstr, "No resistances");
5096 AddPanelString(tempstr, TRUE);
5097 strcpy(tempstr, "No Immunities");
5098 } else {
5099 if (res & (RESIST_MAGIC | RESIST_FIRE | RESIST_LIGHTNING))
5100 strcpy(tempstr, "Some Magic Resistances");
5101 else
5102 strcpy(tempstr, "No resistances");
5103 AddPanelString(tempstr, TRUE);
5104 if (res & (IMUNE_MAGIC | IMUNE_FIRE | IMUNE_LIGHTNING)) {
5105 strcpy(tempstr, "Some Magic Immunities");
5106 } else {
5107 strcpy(tempstr, "No Immunities");
5108 }
5109 }
5110 AddPanelString(tempstr, TRUE);
5111 pinfoflag = TRUE;
5112}
5113
5114void MissToMonst(int i, int x, int y)
5115{

Callers 1

DrawInfoBoxFunction · 0.85

Calls 1

AddPanelStringFunction · 0.85

Tested by

no test coverage detected