Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public override bool PreAI()
- {
- if (npc.ai[0] == 0)
- {
- Main.NewText("The power of sock fetishes overwhelms you...", 224, 147, 4, true);
- npc.ai[0] = 1;
- }
- int hazumekAttackConj = 0;
- int hazumekAttackIDCurrent = 0;
- npc.TargetClosest(true);
- Player player = Main.player[npc.target];
- Random random = new Random();
- // Run one of 4 normal attacks
- Main.NewText(hazumekAttackIDCurrent);
- if (hazumekAttackIDCurrent == 1)
- {
- npc.ai[1]++;
- if (npc.ai[1] > 900)
- {
- Main.NewText("Hazumek NRM Attack 1", 224, 147, 4, true);
- hazumekAttackIDCurrent = random.Next(1,5);
- npc.ai[1] = 0;
- }
- }
- if (hazumekAttackIDCurrent == 2)
- {
- npc.ai[1]++;
- if (npc.ai[1] > 900)
- {
- Main.NewText("Hazumek NRM Attack 2", 224, 147, 4, true);
- hazumekAttackIDCurrent = random.Next(1,5);
- npc.ai[1] = 0;
- }
- }
- if (hazumekAttackIDCurrent == 3)
- {
- npc.ai[1]++;
- if (npc.ai[1] > 900)
- {
- Main.NewText("Hazumek NRM Attack 3", 224, 147, 4, true);
- hazumekAttackIDCurrent = random.Next(1,5);
- npc.ai[1] = 0;
- }
- }
- if (hazumekAttackIDCurrent == 4)
- {
- npc.ai[1]++;
- if (npc.ai[1] > 900)
- {
- Main.NewText("Hazumek NRM Attack 4", 224, 147, 4, true);
- hazumekAttackIDCurrent = random.Next(1,5);
- npc.ai[1] = 0;
- }
- }
- // Run conjunction attack
- if (hazumekAttackConj == 0)
- {
- npc.ai[1]++;
- if (npc.ai[1] > 600)
- {
- Main.NewText("Hazumek CNJ Attack S1", 224, 147, 4, true);
- npc.ai[1] = 0;
- }
- hazumekAttackConj = 1;
- }
- if (hazumekAttackConj == 1)
- {
- npc.ai[1]++;
- if (npc.ai[1] > 600)
- {
- Main.NewText("Hazumek CNJ Attack S2", 224, 147, 4, true);
- npc.ai[1] = 0;
- }
- hazumekAttackConj = 0;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement