Skip to content
Permalink
Browse files
improve volcano escape atmosphere (#1566)
  • Loading branch information
MDT-Maikel committed Aug 5, 2017
1 parent e73c206 commit bb970f1d8caca4dfba0137b9f0982ceedc280089
Showing with 15 additions and 3 deletions.
  1. +5 −3 planet/Parkour.ocf/VolcanoEscape.ocs/Script.c
  2. +10 −0 planet/Parkour.ocf/VolcanoEscapeEx.ocs/Script.c
@@ -50,6 +50,11 @@ protected func Initialize()
PlaceBatches([Firestone], 5, 100, 15);
PlaceBatches([Dynamite, Dynamite, Dynamite, DynamiteBox], 3, 50, 6);
PlaceBatches([Rock, Loam, Loam], 10, 200, 10);
// Some dead trees.
Tree_Coniferous_Burned->Place(4);
Tree_Coniferous2_Burned->Place(2);
Tree_Coniferous3_Burned->Place(2);
Tree_Coniferous4_Burned->Place(2);
// Starting chest
var start_chest = CreateObjectAbove(Chest, LandscapeWidth()*2/5, LandscapeHeight()*97/100);
if (start_chest)
@@ -59,9 +64,6 @@ protected func Initialize()
start_chest->CreateContents(Firestone,3);
start_chest->CreateContents(DynamiteBox,2);
}
// Create Disasters.
//Earthquake->SetChance(2); - this is so random...not fair without relaunches

return;
}

@@ -22,6 +22,15 @@ protected func Initialize()
PlaceBatches([Firestone], 5, 100, 15);
PlaceBatches([Dynamite, Dynamite, Dynamite, DynamiteBox], 3, 50, 6);
PlaceBatches([Rock, Loam, Loam], 10, 200, 10);
// Some dead trees.
Tree_Coniferous_Burned->Place(4);
Tree_Coniferous2_Burned->Place(2);
Tree_Coniferous3_Burned->Place(2);
Tree_Coniferous4_Burned->Place(2);
// At night with stars.
Time->Init();
Time->SetTime(24 * 60);
Time->SetCycleSpeed(0);
// Starting chest
var start_chest = CreateObjectAbove(Chest, w*2/5, h*94/100);
if (start_chest)
@@ -38,6 +47,7 @@ protected func Initialize()
// Schedule script to update volcano speed multiplier

var fx_volcano = new Effect {
Name = "FxVolcano",
Timer = Scenario.VolcanoTimer
};

0 comments on commit bb970f1

Please sign in to comment.