refactor: make status checkers one line
This commit is contained in:
parent
ddd60a730e
commit
1b19b01811
|
@ -159,17 +159,11 @@ namespace PeepingTom {
|
||||||
return Marshal.ReadByte(statusPtr);
|
return Marshal.ReadByte(statusPtr);
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool InCombat(Actor actor) {
|
private bool InCombat(Actor actor) => (this.GetStatus(actor) & 2) > 0;
|
||||||
return (GetStatus(actor) & 2) > 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
private bool InParty(Actor actor) {
|
private bool InParty(Actor actor) => (this.GetStatus(actor) & 16) > 0;
|
||||||
return (GetStatus(actor) & 16) > 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
private bool InAlliance(Actor actor) {
|
private bool InAlliance(Actor actor) => (this.GetStatus(actor) & 32) > 0;
|
||||||
return (GetStatus(actor) & 32) > 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
private bool CanPlaySound() {
|
private bool CanPlaySound() {
|
||||||
if (!this.plugin.Config.PlaySoundOnTarget) {
|
if (!this.plugin.Config.PlaySoundOnTarget) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user