forked from Mirrors/openclonk
Remove Rule_Restart from Parkour.ocf
parent
22bf8ad1f7
commit
25f77fd12c
|
@ -45,10 +45,9 @@ protected func Initialize()
|
|||
|
||||
// Rules: no power and restart with keeping inventory.
|
||||
CreateObject(Rule_NoPowerNeed);
|
||||
var restart = FindObject(Find_ID(Rule_Restart));
|
||||
if (!restart)
|
||||
restart = CreateObject(Rule_Restart);
|
||||
restart->SetRemoveContents(false);
|
||||
GetRelaunchRule()
|
||||
->EnablePlayerRestart()
|
||||
->SetInventoryTransfer(true);
|
||||
|
||||
// Initialize parts of the scenario.
|
||||
var amount = BoundBy(SCENPAR_NrCheckPoints, 6, 20);
|
||||
|
|
|
@ -503,7 +503,6 @@ func InitializeObjects()
|
|||
var Torch018 = CreateObjectAbove(Torch, 1005, 1164);
|
||||
Torch018->AttachToWall(true);
|
||||
|
||||
var Rule_Restart001 = CreateObject(Rule_Restart);
|
||||
|
||||
g_goal = CreateObject(Goal_Parkour);
|
||||
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
private func Initialize()
|
||||
{
|
||||
GetRelaunchRule()
|
||||
->EnablePlayerRestart();
|
||||
|
||||
// Create dynamite below the first lava basin
|
||||
DrawMaterialQuad("Tunnel",1378,1327-5,1860,1327-5,1860,1330,1387,1330,1);
|
||||
|
|
|
@ -62,7 +62,6 @@ protected func Initialize()
|
|||
// Create Disasters.
|
||||
//Earthquake->SetChance(2); - this is so random...not fair without relaunches
|
||||
|
||||
ScheduleCall(nil, Global.RemoveAll, 3, nil, Find_ID(Rule_Restart));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,6 @@ protected func Initialize()
|
|||
};
|
||||
|
||||
CreateEffect(fx_volcano, 1, 40);
|
||||
ScheduleCall(nil, Global.RemoveAll, 3, nil, Find_ID(Rule_Restart));
|
||||
// Bottom is open, so put some stable lava here to prevent remaining lava from just flowing out of the map
|
||||
DrawMaterialQuad("StableLava",0,h0,w,h0,w,h,0,h);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue