public bool b(int A_0, c A_1) { ev cq = PluginCore.cq; if (!cq.n.f.ContainsKey(A_0)) { return(false); } if (!dh.a(A_0)) { return(false); } cf local1 = cq.n.f[A_0]; aj.c c = cq.d.a(PluginCore.cq.p.d(A_0)); MyQuad <int, eDamageElement, ePrismaticDamageBehavior, int> quad = null; if (c.g) { quad = A_1.a(); } TimeSpan span = TimeSpan.FromSeconds((double)er.i("DebuffPrecastSeconds")); if (((((!c.h || (cq.i.a(A_0, this.a("Magic Yield Other I")) > span)) && (!c.m || (cq.i.a(A_0, this.a("Weakening Curse I")) > span))) && ((!c.f || (cq.i.a(A_0, this.a("Imperil Other I")) > span)) && (!c.j || (cq.i.a(A_0, this.a("Gravity Well")) > span)))) && (((!c.k || (cq.i.a(A_0, this.a("Broadside of a Barn")) > span)) && (!c.l || (cq.i.a(A_0, this.a("Fester Other I")) > span))) && ((!c.n || (cq.i.a(A_0, this.a("Festering Curse I")) > span)) && (!c.o || (cq.i.a(A_0, this.a("Corruption I")) > TimeSpan.Zero))))) && (((!c.p || (cq.i.a(A_0, this.a("Destructive Curse I")) > TimeSpan.Zero)) && (!c.q || (cq.i.a(A_0, this.a("Corrosion I")) > TimeSpan.Zero))) && ((!c.g || (cq.i.a(A_0, this.a(cq.h.a(quad.b, eCombatSpellType.Vuln))) > span)) && ((c.c == eDamageElement.None) || (cq.i.a(A_0, this.a(cq.h.a(c.c, eCombatSpellType.Vuln))) > span))))) { return(false); } return(true); }
public LocationIndoorDetailDto(cf.Entities.LocationIndoor l) : base(l) { Address = l.Address; Logo = l.Logo; TopRope = l.HasTopRope; Boulder = l.HasBoulder; Lead = l.HasLead; }
public LocationOutdoorDetailDto(cf.Entities.LocationOutdoor l) : base(l) { Cautions = l.Cautions; Approach = l.Approach; Altitude = l.Altitude; AccessIssues = l.AccessIssues; AccessClosed = l.AccessClosed; ShadeAfternoon = l.ShadeAfternoon; ShadeMidday = l.ShadeMidday; ShadeMorning = l.ShadeMorning; }
public eFillDiagnosticPoint a(cv A_0, double A_1, double A_2, bool A_3) { ev cq = PluginCore.cq; this.a = A_0; this.b = A_0.k; this.c = A_0.g(); if (!cq.n.f.ContainsKey(this.b)) { this.m = false; return(eFillDiagnosticPoint.CreatureInfoMissing); } cf cf = cq.n.f[this.b]; if (cf.a()) { this.m = false; return(eFillDiagnosticPoint.CIInvalid); } this.d = cq.d.a(A_0).a; if (this.d < 0) { this.m = false; return(eFillDiagnosticPoint.NegativePriority); } this.e = dh.a(this.b, PluginCore.cq.aw.get_CharacterFilter().get_Id(), true); if (this.e > A_1) { this.m = false; return(eFillDiagnosticPoint.DistanceTooFar); } if (this.e < A_2) { this.m = false; return(eFillDiagnosticPoint.DistanceTooNear); } this.h = PluginCore.cq.o.b(this.b, this); if (!PluginCore.cq.o.a(this.b, this.h)) { this.m = false; return(eFillDiagnosticPoint.DebuffPassWithNoAttack); } this.f = dh.b(cq.ax.get_Actions().get_Heading(), dh.b(dh.a(cq.aw.get_CharacterFilter().get_Id(), cq.ax.get_Actions()), dh.a(this.b, PluginCore.cq.ax.get_Actions()))); this.g = PluginCore.cq.o.a(this.b, this); this.k = this.b == PluginCore.cq.n.d; this.j = this.b == PluginCore.cq.n.c; this.i = (this.b == PluginCore.cq.ax.get_Actions().get_CurrentSelection()) && A_3; this.l = PluginCore.cq.n.e.Contains(this.b); this.m = true; return(eFillDiagnosticPoint.AttackValid); }
public ClimbOutdoorDetailDto(cf.Entities.ClimbOutdoor c) : base(c.Location) { ID = c.ID.ToString("N"); Name = c.Name; Avatar = c.Avatar; Tags = c.ClimbTags.GetCategoriesString(); ClimbType = c.ClimbTypeID; Description = c.Description; ClimbTerrain = c.ClimbTerrainID; Pitches = c.NumberOfPitches; Grade = c.GradeLocal; DescWhere = c.DescriptionWhere; DescStart = c.DescriptionStart; DescGear = c.DescriptionGear; Rating = c.Rating; RatingCount = c.RatingCount; Index = c.LocationPostionIndex; if (!String.IsNullOrWhiteSpace(c.SafetyRating) || !String.IsNullOrWhiteSpace(c.DescriptionSafety)) { Safety = string.Format("{0} {1}", c.SafetyRating, c.DescriptionSafety); } }
/// <summary> /// Logic for Partner Calls notifications system /// </summary> /// <param name="places"></param> /// <returns></returns> public List<cf.Dtos.CfCacheIndexEntry> GetGeoDeduciblePlaces(cf.Dtos.CfCacheIndexEntry place) { var places = new List<cf.Dtos.CfCacheIndexEntry>(); if (place.Type == CfType.Country || place.Type == CfType.Province) { throw new Exception("GetGeoDeduciblePlaces is not available for countries and provinces: "+place.ID); } else if (place.Type.ToPlaceCateogry() == PlaceCategory.Area) { foreach (var loc in GetLocationsOfArea(place.ID)) { places.Add(((Place<Guid>)loc).ToCacheIndexEntry()); } foreach (var area in areaRepo.GetIntersectingAreas(place.ID)) { if (area.Type != CfType.Province && !area.DisallowPartnerCalls) { places.Add(area.ToCacheIndexEntry()); } } } else { foreach (var area in areaRepo.GetIntersectingAreasOfLocation(place.ID)) { if (area.Type != CfType.Province && !area.DisallowPartnerCalls) { places.Add(area.ToCacheIndexEntry()); } } } places.Add(place); //-- Make sure we include our original place return places; }
private void checkMenu() { if (Session["user"] != null) { user u = (user)HttpContext.Current.Session["user"]; if (u.get_admin()) { liAdmin.Visible = true; } ulLogin.Visible = false; ulLogout.Visible = true; } else { #region Check for cookie if (Request.Cookies["bbffl"] != null) { try { cf c = new cf(); if (c.getUserFromCookie("bbffl")) { liAdmin.Visible = true; ulLogin.Visible = false; ulLogout.Visible = true; } } catch (Exception ex) { cf.logError(ex); ulLogin.Visible = true; ulLogout.Visible = false; } } else { ulLogin.Visible = true; ulLogout.Visible = false; } #endregion } #region Set Navigation Links string page = Request.Url.AbsolutePath; switch (page) { //case "/history.aspx": // liHistory.Attributes.Add("class", "active"); // break; //case "/matchups.aspx": // liMatchups.Attributes.Add("class", "active"); // break; case "/Default.aspx": liHome.Attributes.Add("class", "active"); break; case "/login.aspx": liLogin.Attributes.Add("class", "active"); break; default: if (page.Contains("/admin/")) { if (liAdmin.Visible) { liAdmin.Attributes.Add("class", "active"); } else //non-admin user trying to access admin pages, redirect to default.aspx { Response.Redirect("~/", true); } } break; } #endregion }