Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.64 KB | None | 0 0
  1. // YellowAI
  2. // Token: 0x06002025 RID: 8229 RVA: 0x001DA780 File Offset: 0x001D8980
  3. public override void Update()
  4. {
  5. base.Update();
  6. if (this.communicating > 0)
  7. {
  8. this.communicating--;
  9. }
  10. float num = Mathf.InverseLerp(0f, 14f, (float)this.communicating);
  11. if (this.commFlicker < num)
  12. {
  13. this.commFlicker = Mathf.Min(num, this.commFlicker + 0.25f);
  14. }
  15. else
  16. {
  17. this.commFlicker = Mathf.Max(num, this.commFlicker - 0.025f);
  18. }
  19. for (int i = 0; i < this.lizard.room.abstractRoom.creatures.Count; i++)
  20. {
  21. 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)
  22. {
  23. this.ConsiderOtherYellowLizard(this.lizard.room.abstractRoom.creatures[i]);
  24. }
  25. 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)
  26. {
  27. this.ConsiderOtherYellowLizard(this.lizard.room.abstractRoom.creatures[i]);
  28. }
  29. 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)
  30. {
  31. this.ConsiderOtherYellowLizard(this.lizard.room.abstractRoom.creatures[i]);
  32. }
  33. 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)
  34. {
  35. this.ConsiderOtherYellowLizard(this.lizard.room.abstractRoom.creatures[i]);
  36. }
  37. 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)
  38. {
  39. this.ConsiderOtherYellowLizard(this.lizard.room.abstractRoom.creatures[i]);
  40. }
  41. 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)
  42. {
  43. this.ConsiderOtherYellowLizard(this.lizard.room.abstractRoom.creatures[i]);
  44. }
  45. 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)
  46. {
  47. this.ConsiderOtherYellowLizard(this.lizard.room.abstractRoom.creatures[i]);
  48. }
  49. 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)
  50. {
  51. this.ConsiderOtherYellowLizard(this.lizard.room.abstractRoom.creatures[i]);
  52. }
  53. 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)
  54. {
  55. this.ConsiderOtherYellowLizard(this.lizard.room.abstractRoom.creatures[i]);
  56. }
  57. }
  58. for (int j = 0; j < this.pack.members.Count; j++)
  59. {
  60. if (this.pack.members[j].lizard.abstractAI.RealAI != null)
  61. {
  62. for (int k = 0; k < this.pack.members[j].lizard.abstractAI.RealAI.tracker.CreaturesCount; k++)
  63. {
  64. if (this.pack.members[j].lizard.realizedCreature != null && this.pack.members[j].lizard.realizedCreature.Consious)
  65. {
  66. this.PackMemberIsSeeingCreature(this.pack.members[j].lizard.realizedCreature as Lizard, this.pack.members[j].lizard.abstractAI.RealAI.tracker.GetRep(k));
  67. }
  68. }
  69. }
  70. }
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement