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,10 +1,11 @@
/*--- Flint ---*/
/*--- Pyre Gem ---*/
local e;
protected func Initialize()
{
if(this->GetX() < LandscapeWidth()/2){
if(Random(2))
{
SetGraphics("E");
e=true;
}
@ -13,6 +14,18 @@ protected func Initialize()
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,9 +231,6 @@ 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);
if (obj_id == Bow)

View File

@ -1,10 +1,11 @@
/*--- Flint ---*/
/*--- Shield Gem ---*/
local e;
protected func Initialize()
{
if(this->GetX() < LandscapeWidth()/2){
if(Random(2))
{
SetGraphics("E");
e=true;
}
@ -13,6 +14,18 @@ protected func Initialize()
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,7 +4,8 @@ local e;
protected func Initialize()
{
if(this->GetX() < LandscapeWidth()/2){
if(Random(2))
{
SetGraphics("E");
e=true;
}
@ -13,6 +14,18 @@ protected func Initialize()
SetGraphics("");
e=false;
}
if(this->GetX() < 920)
{
SetGraphics("E");
e=true;
}
else if(this->GetX() > 1280)
{
SetGraphics("");
e=false;
}
SetR(Random(360));
}