"Buildables" depend on tech graph
* Modified buildable definitions and loader to use technologies from the tech graph as dependencies instead of the old research system * Modified planet-related views and functions accordingly
This commit is contained in:
parent
76a01cbf1c
commit
070d55dc05
6 changed files with 89 additions and 104 deletions
legacyworlds-server-main/data
|
@ -13,15 +13,15 @@
|
|||
</building>
|
||||
<building name="indFactory" description="indFactoryDescription" type="CASH" output="1" workers="500">
|
||||
<cost build="500" upkeep="20" work="28800" />
|
||||
<tech name="civTech" level="1" />
|
||||
<require-technology>indFactTech</require-technology>
|
||||
</building>
|
||||
<building name="reanimationCentre" description="reanimationCentreDescription" type="POP" output="1" workers="300">
|
||||
<cost build="4000" upkeep="200" work="57600" />
|
||||
<tech name="civTech" level="2" />
|
||||
<require-technology>reanimationTech</require-technology>
|
||||
</building>
|
||||
<building name="superTurret" description="superTurretDescription" type="DEF" output="500" workers="1">
|
||||
<cost build="4000" upkeep="10" work="20000" />
|
||||
<tech name="civTech" level="3" />
|
||||
<require-technology>superTurretTech</require-technology>
|
||||
</building>
|
||||
|
||||
<ship name="fighter" description="fighterDescription" time="3" power="10">
|
||||
|
@ -29,15 +29,15 @@
|
|||
</ship>
|
||||
<ship name="cruiser" description="cruiserDescription" time="5" power="100">
|
||||
<cost build="500" upkeep="80" work="5000" />
|
||||
<tech name="milTech" level="1" />
|
||||
<require-technology>cruisersTech</require-technology>
|
||||
</ship>
|
||||
<ship name="bCruiser" description="bCruiserDescription" time="4" power="335">
|
||||
<cost build="2500" upkeep="320" work="25000" />
|
||||
<tech name="milTech" level="2" />
|
||||
<require-technology>bCruisersTech</require-technology>
|
||||
</ship>
|
||||
<ship name="dreadnought" description="dreadnoughtDescription" time="6" power="5000">
|
||||
<cost build="12500" upkeep="1280" work="125000" />
|
||||
<tech name="milTech" level="3" />
|
||||
<require-technology>dreadnoughtsTech</require-technology>
|
||||
</ship>
|
||||
|
||||
</buildables>
|
|
@ -26,7 +26,7 @@
|
|||
<xs:complexType name="buildable" abstract="true">
|
||||
<xs:sequence>
|
||||
<xs:element name="cost" type="cost" />
|
||||
<xs:element name="tech" type="tech" minOccurs="0" />
|
||||
<xs:element name="require-technology" type="xs:string" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
<xs:attribute name="name" use="required" type="xs:string" />
|
||||
<xs:attribute name="description" use="required" type="xs:string" />
|
||||
|
|
Reference in a new issue