mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-23 09:57:41 +00:00
added faraway monster highlight as in @still-flow's pull request
This commit is contained in:
@@ -158,6 +158,14 @@ EX bool isFriendly(cell *c) {
|
||||
return isMounted(c) || isFriendly(c->monst);
|
||||
}
|
||||
|
||||
EX eThreatLevel get_threat_level(cell *c) {
|
||||
if(!c->monst) return tlNoThreat;
|
||||
if(isFriendly(c)) return tlNoThreat;
|
||||
if(classflag(c->monst) & CF_HIGH_THREAT) return tlHighThreat;
|
||||
if(classflag(c->monst) & CF_SPAM) return tlSpam;
|
||||
return tlNormal;
|
||||
}
|
||||
|
||||
EX bool isFriendlyOrBug(cell *c) { // or killable discord!
|
||||
// do not attack the stunned Princess
|
||||
if(isPrincess(c->monst) && c->stuntime) return false;
|
||||
|
Reference in New Issue
Block a user