diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-02-21 05:03:38 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-02-21 05:03:38 -0300 |
commit | 039a18fa891a78f17dd89e4f92874060cc996fe0 (patch) | |
tree | 07d52cbfe3fdf3d585f638702974266fbd1b71c2 /npc/001-14/ctrl.txt | |
parent | 4df11ecb05284d21f9ea00f88257630f2ea0472e (diff) | |
download | serverdata-039a18fa891a78f17dd89e4f92874060cc996fe0.tar.gz serverdata-039a18fa891a78f17dd89e4f92874060cc996fe0.tar.bz2 serverdata-039a18fa891a78f17dd89e4f92874060cc996fe0.tar.xz serverdata-039a18fa891a78f17dd89e4f92874060cc996fe0.zip |
Fix some bad Olympics code
Diffstat (limited to 'npc/001-14/ctrl.txt')
-rw-r--r-- | npc/001-14/ctrl.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/npc/001-14/ctrl.txt b/npc/001-14/ctrl.txt index 7b8386497..c64d20dc6 100644 --- a/npc/001-14/ctrl.txt +++ b/npc/001-14/ctrl.txt @@ -120,6 +120,8 @@ OnCheck: OnEnd: if (@moly_chall != 1) end; + .@pts=getq2(Q_AuroraEvent); + setq2 Q_AuroraEvent, .@pts+rand2(1, 1+@moly_scr/10); dispbottom l("End! Score this time: %d", @moly_score); FYMOLY_ENBALL = max(FYMOLY_ENBALL, @moly_score); @moly_score = 0; @@ -281,6 +283,8 @@ OnTimer10000: if (@moly_chall != 6) end; @moly_score = (getunitdata(.mob, UDT_HP) - getunitdata(.mob, UDT_MAXHP)) * -1; killmonsterall(getmap()); + .@pts=getq2(Q_AuroraEvent); + setq2 Q_AuroraEvent, .@pts+rand2(1, 1+@moly_score/1500); dispbottom l("End! Score this time: %d", @moly_score); FYMOLY_MPWLVL = max(FYMOLY_MPWLVL, @moly_score); @moly_score = 0; @@ -589,6 +593,8 @@ OnWin: if (@moly_tick < gettimetick(2) / 2) end; // Ticks were Corrupted @moly_score = gettimetick(2) - @moly_tick; if (@moly_score < 8) end; // This is impossible*, don't even bother + .@pts=getq2(Q_AuroraEvent); + setq2 Q_AuroraEvent, .@pts+rand2(1, 1+BaseLevel/20); dispbottom l("End! Score this time: %s", FuzzyTime(@moly_tick)); if (FYMOLY_RACERS >= 8) FYMOLY_RACERS = min(FYMOLY_RACERS, @moly_score); @@ -763,6 +769,8 @@ OnClM: OnEnd: if (@moly_chall != 9) end; + .@pts=getq2(Q_AuroraEvent); + setq2 Q_AuroraEvent, .@pts+rand2(1, 1+@moly_score/10); dispbottom l("End! Score this time: %d", @moly_score); FYMOLY_HOCUSM = max(FYMOLY_HOCUSM, @moly_score); @moly_score = 0; @@ -805,6 +813,8 @@ OnCheck: // Game Over! killmonsterall(getmap()); @moly_score = @moly_score / 2; + .@pts=getq2(Q_AuroraEvent); + setq2 Q_AuroraEvent, .@pts+rand2(1, 1+@moly_score/20); dispbottom l("End! Score this time: %s", FuzzyTime(gettimetick(2)+@moly_score)); FYMOLY_SURVIV = max(FYMOLY_SURVIV, @moly_score); @moly_score = 0; |