Hideout: Gem color setting adjusted

MimmoO 2010-12-03 12:02:34 +01:00
parent bac267f423
commit cc7b2e2135
4 changed files with 52 additions and 16 deletions

View File

@ -1,18 +1,31 @@
/*--- Flint ---*/
/*--- Pyre Gem ---*/
local e;
protected func Initialize()
{
if(this->GetX() < LandscapeWidth()/2){
if(Random(2))
{
SetGraphics("E");
e=true;
e=true;
}
else
else
{
SetGraphics("");
e=false;
}
if(this->GetX() < 920)
{
SetGraphics("E");
e=true;
}
else if(this->GetX() > 1280)
{
SetGraphics("");
e=false;
}
SetR(Random(360));
}

View File

@ -207,7 +207,7 @@ global func FxFillOtherChestTimer(object target)
global func FxFillSpecialChestTimer(object target)
{
if (Random(3)) return 1;
if (Random(2)) return 1;
var w_list = [PyreGem, ShieldGem, SlowGem];
var r=Random(3);
@ -231,10 +231,7 @@ global func CreateChestContents(id obj_id)
{
if (!this)
return;
if(GetX() > LandscapeWidth()/2 -50 && GetX() < LandscapeWidth()/2 +50)
var obj = CreateObject(obj_id,RandomX(0,LandscapeWidth()),-500,NO_OWNER);
else
var obj = CreateObject(obj_id);
var obj = CreateObject(obj_id);
if (obj_id == Bow)
obj->CreateContents(Arrow);

View File

@ -1,18 +1,31 @@
/*--- Flint ---*/
/*--- Shield Gem ---*/
local e;
protected func Initialize()
{
if(this->GetX() < LandscapeWidth()/2){
if(Random(2))
{
SetGraphics("E");
e=true;
e=true;
}
else
else
{
SetGraphics("");
e=false;
}
if(this->GetX() < 920)
{
SetGraphics("E");
e=true;
}
else if(this->GetX() > 1280)
{
SetGraphics("");
e=false;
}
SetR(Random(360));
}

View File

@ -4,15 +4,28 @@ local e;
protected func Initialize()
{
if(this->GetX() < LandscapeWidth()/2){
if(Random(2))
{
SetGraphics("E");
e=true;
e=true;
}
else
else
{
SetGraphics("");
e=false;
}
if(this->GetX() < 920)
{
SetGraphics("E");
e=true;
}
else if(this->GetX() > 1280)
{
SetGraphics("");
e=false;
}
SetR(Random(360));
}