Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert default/scripting/techs/ship_parts/fuel/SHP_ANTIMATTER_TANK.focs
- Loading branch information
Showing
8 changed files
with
110 additions
and
20 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
default/scripting/techs/ship_parts/fuel/SHP_ANTIMATTER_TANK.focs.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from common.base_prod import TECH_COST_MULTIPLIER | ||
from techs.ship_parts.fuel.fuel import PART_UPGRADE_MAXFUEL_EFFECTS | ||
|
||
Tech( | ||
name="SHP_ANTIMATTER_TANK", | ||
description="SHP_ANTIMATTER_TANK_DESC", | ||
short_description="SHIP_FUEL_IMPROVE_SHORT_DESC", | ||
category="SHIP_PARTS_CATEGORY", | ||
researchcost=175 * TECH_COST_MULTIPLIER, | ||
researchturns=3, | ||
tags=["PEDIA_FUEL_PART_TECHS"], | ||
prerequisites=["SHP_DEUTERIUM_TANK", "LRN_FORCE_FIELD"], | ||
effectsgroups=[PART_UPGRADE_MAXFUEL_EFFECTS("SHP_ANTIMATTER_TANK_EFFECT", 1.5)], | ||
graphic="icons/ship_parts/antimatter_tank.png", | ||
) |
20 changes: 0 additions & 20 deletions
20
default/scripting/techs/ship_parts/fuel/SHP_ANTIMATTER_TANK.focs.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Increase the fuel capacity of ships with FU_BASIC_TANK parts. | ||
# Adds the given increase amount times the number of FU_BASIC_TANK parts in the design to the max fuel meter. | ||
# @1@ Accounting label to present this effect with | ||
# @2@ Fuel capacity increase per fuel part | ||
def PART_UPGRADE_MAXFUEL_EFFECTS(effect_name: str, value: float): | ||
return EffectsGroup( | ||
scope=Ship & OwnedBy(empire=Source.Owner) & DesignHasPart(name="FU_BASIC_TANK"), | ||
accountinglabel=effect_name, | ||
effects=[ | ||
SetMaxFuel( | ||
value=Value | ||
+ NamedReal(name=effect_name + "_MULT", value=value) | ||
* PartsInShipDesign(name="FU_BASIC_TANK", design=Target.DesignID) | ||
) | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters