Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // YellowAI
- // Token: 0x06002025 RID: 8229 RVA: 0x001DA780 File Offset: 0x001D8980
- public override void Update()
- {
- base.Update();
- if (this.communicating > 0)
- {
- this.communicating--;
- }
- float num = Mathf.InverseLerp(0f, 14f, (float)this.communicating);
- if (this.commFlicker < num)
- {
- this.commFlicker = Mathf.Min(num, this.commFlicker + 0.25f);
- }
- else
- {
- this.commFlicker = Mathf.Max(num, this.commFlicker - 0.025f);
- }
- for (int i = 0; i < this.lizard.room.abstractRoom.creatures.Count; i++)
- {
- if (this.lizard.room.abstractRoom.creatures[i].creatureTemplate.type == CreatureTemplate.Type.YellowLizard && this.lizard.room.abstractRoom.creatures[i].realizedCreature != null && this.lizard.room.abstractRoom.creatures[i].realizedCreature.Consious && this.lizard.room.abstractRoom.creatures[i] != this.AI.creature)
- {
- this.ConsiderOtherYellowLizard(this.lizard.room.abstractRoom.creatures[i]);
- }
- else if (this.lizard.room.abstractRoom.creatures[i].creatureTemplate.type == CreatureTemplate.Type.GreenLizard && this.lizard.room.abstractRoom.creatures[i].realizedCreature != null && this.lizard.room.abstractRoom.creatures[i].realizedCreature.Consious && this.lizard.room.abstractRoom.creatures[i] != this.AI.creature)
- {
- this.ConsiderOtherYellowLizard(this.lizard.room.abstractRoom.creatures[i]);
- }
- if (this.lizard.room.abstractRoom.creatures[i].creatureTemplate.type == CreatureTemplate.Type.BlueLizard && this.lizard.room.abstractRoom.creatures[i].realizedCreature != null && this.lizard.room.abstractRoom.creatures[i].realizedCreature.Consious && this.lizard.room.abstractRoom.creatures[i] != this.AI.creature)
- {
- this.ConsiderOtherYellowLizard(this.lizard.room.abstractRoom.creatures[i]);
- }
- if (this.lizard.room.abstractRoom.creatures[i].creatureTemplate.type == CreatureTemplate.Type.WhiteLizard && this.lizard.room.abstractRoom.creatures[i].realizedCreature != null && this.lizard.room.abstractRoom.creatures[i].realizedCreature.Consious && this.lizard.room.abstractRoom.creatures[i] != this.AI.creature)
- {
- this.ConsiderOtherYellowLizard(this.lizard.room.abstractRoom.creatures[i]);
- }
- if (this.lizard.room.abstractRoom.creatures[i].creatureTemplate.type == CreatureTemplate.Type.RedLizard && this.lizard.room.abstractRoom.creatures[i].realizedCreature != null && this.lizard.room.abstractRoom.creatures[i].realizedCreature.Consious && this.lizard.room.abstractRoom.creatures[i] != this.AI.creature)
- {
- this.ConsiderOtherYellowLizard(this.lizard.room.abstractRoom.creatures[i]);
- }
- if (this.lizard.room.abstractRoom.creatures[i].creatureTemplate.type == CreatureTemplate.Type.PinkLizard && this.lizard.room.abstractRoom.creatures[i].realizedCreature != null && this.lizard.room.abstractRoom.creatures[i].realizedCreature.Consious && this.lizard.room.abstractRoom.creatures[i] != this.AI.creature)
- {
- this.ConsiderOtherYellowLizard(this.lizard.room.abstractRoom.creatures[i]);
- }
- if (this.lizard.room.abstractRoom.creatures[i].creatureTemplate.type == CreatureTemplate.Type.CyanLizard && this.lizard.room.abstractRoom.creatures[i].realizedCreature != null && this.lizard.room.abstractRoom.creatures[i].realizedCreature.Consious && this.lizard.room.abstractRoom.creatures[i] != this.AI.creature)
- {
- this.ConsiderOtherYellowLizard(this.lizard.room.abstractRoom.creatures[i]);
- }
- if (this.lizard.room.abstractRoom.creatures[i].creatureTemplate.type == CreatureTemplate.Type.BlackLizard && this.lizard.room.abstractRoom.creatures[i].realizedCreature != null && this.lizard.room.abstractRoom.creatures[i].realizedCreature.Consious && this.lizard.room.abstractRoom.creatures[i] != this.AI.creature)
- {
- this.ConsiderOtherYellowLizard(this.lizard.room.abstractRoom.creatures[i]);
- }
- if (this.lizard.room.abstractRoom.creatures[i].creatureTemplate.type == CreatureTemplate.Type.Salamander && this.lizard.room.abstractRoom.creatures[i].realizedCreature != null && this.lizard.room.abstractRoom.creatures[i].realizedCreature.Consious && this.lizard.room.abstractRoom.creatures[i] != this.AI.creature)
- {
- this.ConsiderOtherYellowLizard(this.lizard.room.abstractRoom.creatures[i]);
- }
- }
- for (int j = 0; j < this.pack.members.Count; j++)
- {
- if (this.pack.members[j].lizard.abstractAI.RealAI != null)
- {
- for (int k = 0; k < this.pack.members[j].lizard.abstractAI.RealAI.tracker.CreaturesCount; k++)
- {
- if (this.pack.members[j].lizard.realizedCreature != null && this.pack.members[j].lizard.realizedCreature.Consious)
- {
- this.PackMemberIsSeeingCreature(this.pack.members[j].lizard.realizedCreature as Lizard, this.pack.members[j].lizard.abstractAI.RealAI.tracker.GetRep(k));
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement