Skip to content

Commit

Permalink
Change wall blitz time to property (default 5 min).
Browse files Browse the repository at this point in the history
  • Loading branch information
skittles1 committed Mar 2, 2015
1 parent 18ecd73 commit 721d2a9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 5 additions & 5 deletions kod/object/active/holder/room/monsroom/survivalroom.kod
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ constants:
GOAL_BOSS = 2
GOAL_MINIBOSSES = 3
GOAL_KILL_FRIENDLY = 4

% 3 minutes per wave until they begin moving through walls
WALL_BLITZ_TIME = 180000


% 3 minutes to begin public survivals
PB_START_TIME = 180000

Expand Down Expand Up @@ -165,6 +162,7 @@ properties:

piRegroupTime = 15000
ptNextLevelTimer = $
piWallBlitzTime = 300000

piGen_time = 5000
piGen_percent = 100
Expand Down Expand Up @@ -247,6 +245,8 @@ messages:
% Set the regroup time from the SurvivalRoomMaintenance default
piRegroupTime = Send(Send(SYS,@GetSurvivalRoomMaintenance),
@GetRegroupTime);
piWallBlitzTime = Send(Send(SYS,@GetSurvivalRoomMaintenance),
@GetWallBlitzTime);

plRoundOneMonsters = [[&GiantRat, 14],
[&SpiderBaby, 14],
Expand Down Expand Up @@ -493,7 +493,7 @@ messages:
plMonsters = plAllMonsters;
}

ptWallBlitzTimer = CreateTimer(self,@ActivateWallBlitz,WALL_BLITZ_TIME);
ptWallBlitzTimer = CreateTimer(self,@ActivateWallBlitz,piWallBlitzTime);
ptReportGoalsTimer = CreateTimer(self,@ReportGoalsTrigger,REPORT_TIME);

if Random(1,20) < piLevel
Expand Down
10 changes: 9 additions & 1 deletion kod/util/survivalmaint.kod
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ properties:

% Default time between rounds
piRegroupTime = 15000

% Default time between wall blitzes (mobs walk through walls)
piWallBlitzTime = 300000

messages:

Expand Down Expand Up @@ -333,7 +336,12 @@ messages:
{
return piSurvivalLoot;
}


GetWallBlitzTime()
{
return piWallBlitzTime;
}

ExcludeRID(iRID=RID_MAR_SMITHY)
{
if plExcludedRoomsList = $
Expand Down

0 comments on commit 721d2a9

Please sign in to comment.