diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-04-22 10:53:29 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-04-22 10:53:29 -0300 |
commit | b3de8d1b8fdf350dfccb74da34ae7669c009c5e0 (patch) | |
tree | f14f0142c7ad071dd8eac9b277fd5659bf21fd7d /npc/021-4/main.txt | |
parent | fce253b2e98fab3077dd48ef5bcc232f06e901eb (diff) | |
download | serverdata-b3de8d1b8fdf350dfccb74da34ae7669c009c5e0.tar.gz serverdata-b3de8d1b8fdf350dfccb74da34ae7669c009c5e0.tar.bz2 serverdata-b3de8d1b8fdf350dfccb74da34ae7669c009c5e0.tar.xz serverdata-b3de8d1b8fdf350dfccb74da34ae7669c009c5e0.zip |
Wave counter keeps going, but Cindy Cave is now limited
Diffstat (limited to 'npc/021-4/main.txt')
-rw-r--r-- | npc/021-4/main.txt | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/npc/021-4/main.txt b/npc/021-4/main.txt index 32823f3cb..62d12bcf0 100644 --- a/npc/021-4/main.txt +++ b/npc/021-4/main.txt @@ -197,28 +197,31 @@ OnTimer2500: goto L_CleanUp; } .wtime+=5; - .@bonus=(.lifetime/10)*10; // After the 10th round, it starts to spawn slower + .@bonus=(.lifetime/5)*5; // After every 5 rounds, spawn slower if (.wtime >= rand(90,120)+.@bonus+(.lifetime*rand(11,12))) { .wtime=0; .lifetime+=1; .@pl = getmapusers("021-4")+1; - // If gate was unlocked, more Yetis will appear depending on switches state. - if (.canfinish) - .@pl+=5-CindySwitch_Check_214(); - .@value=(.@pl/2)+($@CINDY_STATE/2)+(.lifetime/3); - areamonster "021-4", 20, 20, 100, 80, "Yeti", Yeti, (.@value+1)/2, "Cindy#Outside::OnPetDeath"; - areamonster "021-4", 20, 20, 100, 80, "Moggun", Moggun, (.@value+1)/2, "Cindy#Outside::OnPetDeath"; - npctalk any("Yetis!", - "Watch out!", - "More of them are coming!", - "Be careful! There's more!", - "More Yetis! Will this never end?", - "AAAAH! YETIS!", - "*shierks*", - "There are coming more and more!", - "More Yetis! We are hopeless!", - "Keep your guard up!", - "Hit and run, hit and run! More of them!"); + // Wave Limit: After limit, monsters stop spawning, but wave counter keeps going + if (.lifetime <= .wavelimit) { + // If gate was unlocked, more Yetis will appear depending on switches state. + if (.canfinish) + .@pl+=5-CindySwitch_Check_214(); + .@value=(.@pl/2)+($@CINDY_STATE/2)+(.lifetime/3); + areamonster "021-4", 20, 20, 100, 80, "Yeti", Yeti, (.@value+1)/2, "Cindy#Outside::OnPetDeath"; + areamonster "021-4", 20, 20, 100, 80, "Moggun", Moggun, (.@value+1)/2, "Cindy#Outside::OnPetDeath"; + npctalk any("Yetis!", + "Watch out!", + "More of them are coming!", + "Be careful! There's more!", + "More Yetis! Will this never end?", + "AAAAH! YETIS!", + "*shierks*", + "There are coming more and more!", + "More Yetis! We are hopeless!", + "Keep your guard up!", + "Hit and run, hit and run! More of them!"); + } } areamonster "021-4", 20, 20, 100, 80, "Slime Blast", SlimeBlast, $@CINDY_STATE; if (.lifetime >= 63) @@ -231,6 +234,7 @@ OnInit: .lifetime=0; // Controls Yeti Wave .wtime=0; // Timer runs sort of often. WTime controls automatic Yeti advance .canfinish=0;// Can finish or must talk to cage first? + .wavelimit=30; // max number of waves $@CINDY_HERO$=""; disablenpc "#CindySwitch_06"; disablenpc "#CindySwitch_07"; |