forked from 0ad/0ad
Increased SettlementAura radius so it looks nicer on maps where scenario designers have placed settlements by hand. Eventually we should decrease it back to 0.1 when Atlas supports socketted placement.
Also, modified game startup script to use the new tech functions. This was SVN commit r4139.
This commit is contained in:
parent
845b606763
commit
e374ecc342
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
|
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
|
||||||
|
|
||||||
<Entity
|
<Entity
|
||||||
Parent="template_unit_cavalry_melee_cavalry_spearman"
|
Parent="template_unit_cavalry_melee_spearman"
|
||||||
>
|
>
|
||||||
<Traits>
|
<Traits>
|
||||||
|
|
||||||
|
@ -503,7 +503,7 @@ function attachAuras()
|
|||||||
|
|
||||||
if( this.hasClass("Settlement") )
|
if( this.hasClass("Settlement") )
|
||||||
{
|
{
|
||||||
this.addAura ( "settlement", 0.1, 0, new SettlementAura( this ) );
|
this.addAura ( "settlement", 1.0, 0, new SettlementAura( this ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,10 +33,10 @@ for(var i=0; i<players.length; i++)
|
|||||||
// Give the players their civ techs (which will set up their civ bonuses)
|
// Give the players their civ techs (which will set up their civ bonuses)
|
||||||
for(var i=0; i<players.length; i++)
|
for(var i=0; i<players.length; i++)
|
||||||
{
|
{
|
||||||
var tech = getTechnology( "civ_" + players[i].civilization.toLowerCase() );
|
var tech = getTechnology( "civ_" + players[i].civilization.toLowerCase(), players[i] );
|
||||||
if( tech != null )
|
if( tech != null )
|
||||||
{
|
{
|
||||||
tech.applyEffects( i, false, false );
|
tech.applyEffects( false, false );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user