public GGWaveType(NpcUtils.NpcClass npcClass_0, NpcUtils.NpcGroup npcGroup_0, int int_0, string string_0 = null) { Class13.lOBHd9Nzn7x2T(); base..ctor(npcClass_0, npcGroup_0, false); this.WaveNumber = int_0; this.Description = string_0; base.Id = Interlocked.Increment(ref NpcUtils.GGWaveType.LastGGId); NpcUtils.NpcById[base.Id] = this; }
public static int smethod_2(NpcUtils.NpcClass npcClass_0) { int result; if (npcClass_0 != null && SecurityManager.NpcRangesRegular.TryGetValue(npcClass_0, out result)) { return(result); } return(540); }
protected NpcType(NpcUtils.NpcClass npcClass_0, NpcUtils.NpcGroup npcGroup_0, bool bool_0 = true) { Class13.lOBHd9Nzn7x2T(); base..ctor(); this.Class = npcClass_0; this.Group = npcGroup_0; if (bool_0) { this.Id = ((int)this.Group.Id << 16 | (int)this.Class.Id); NpcUtils.NpcById[this.Id] = this; } }
public static int smethod_1(NpcUtils.NpcType npcType_0) { if (npcType_0 == null || npcType_0.Class == null) { return(540); } NpcUtils.NpcClass @class = npcType_0.Class; int num = (npcType_0.Group == NpcUtils.G_Boss) ? 15 : ((npcType_0.Group == NpcUtils.G_Uber) ? 30 : 0); int num2; if (SecurityManager.NpcRangesRegular.TryGetValue(@class, out num2)) { return(num2 + Math.Min(num, Math.Max(0, 610 - num2))); } return(540 + num); }
public override string ToString() { string format = "{0}{1} {2} {3}"; object[] array = new object[4]; int num = 0; NpcUtils.NpcGroup group = base.Group; array[num] = ((group != null) ? group.DisplayName : null); array[1] = this.WaveNumber; int num2 = 2; NpcUtils.NpcClass @class = base.Class; array[num2] = ((@class != null) ? @class.Name : null); array[3] = this.Description; return(string.Format(format, array)); }
public override bool vmethod_8(NpcShip npcShip_0) { NpcUtils.NpcType type = npcShip_0.Type; NpcUtils.NpcClass npcClass = (type != null) ? type.Class : null; return((npcClass == NpcUtils.N_Cubikon || Vector2.Distance(this.Module.BestSpawn, npcShip_0.Position) < 800f) && (npcClass != NpcUtils.N_Protegit || !this.method_24()) && base.vmethod_8(npcShip_0)); }
public static NpcUtils.NpcType smethod_3(NpcUtils.NpcClass npcClass_0) { return(NpcUtils.NpcType.smethod_2(NpcUtils.G_Regular, npcClass_0)); }
public static NpcUtils.NpcType smethod_2(NpcUtils.NpcGroup npcGroup_0, NpcUtils.NpcClass npcClass_0) { return(NpcUtils.NpcType.smethod_5(npcGroup_0.ToString() + " " + npcClass_0.ToString())); }