public override float GetScore(BaseContext ctx) { NPCHumanContext nPCHumanContext = ctx as NPCHumanContext; if (nPCHumanContext == null) { return(0f); } if (!IsAtLocation.Test(nPCHumanContext, this.Location)) { return(0f); } return(1f); }
public override float GetScore(BaseContext ctx) { NPCHumanContext c = ctx as NPCHumanContext; return(c != null && IsAtLocation.Test(c, this.Location) ? 1f : 0.0f); }