Script changes for the updated construction system.
This was SVN commit r3846.
This commit is contained in:
parent
2a2d115f4d
commit
6df8229a3a
@ -991,6 +991,7 @@ function entityEventPrepareOrder( evt )
|
||||
break;
|
||||
|
||||
case ORDER_PRODUCE:
|
||||
case ORDER_START_CONSTRUCTION:
|
||||
evt.notifyType = NOTIFY_NONE;
|
||||
break;
|
||||
|
||||
@ -1003,6 +1004,13 @@ function entityEventPrepareOrder( evt )
|
||||
|
||||
// ====================================================================
|
||||
|
||||
function entityStartConstruction( evt )
|
||||
{
|
||||
this.order( ORDER_GENERIC, evt.target, ACTION_BUILD );
|
||||
}
|
||||
|
||||
// ====================================================================
|
||||
|
||||
function entityStartProduction( evt )
|
||||
{
|
||||
console.write("StartProduction: " + evt.productionType + " " + evt.name);
|
||||
|
@ -91,9 +91,11 @@
|
||||
|
||||
<Build>
|
||||
<Rate>1.0</Rate>
|
||||
<Speed>1500</Speed>
|
||||
<Speed>1000</Speed>
|
||||
</Build>
|
||||
|
||||
</Actions>
|
||||
|
||||
<Script File="entities/template_entity_script.js" />
|
||||
<Event On="StartConstruction" Function="entityStartConstruction" />
|
||||
</Entity>
|
Loading…
Reference in New Issue
Block a user