Open source Star Ruler 2 source code!
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
Card: GalaxyMall
|
||||
Name: #CARD_GALAXY_MALL
|
||||
Description: #CARD_GALAXY_MALL_DESC
|
||||
Icon: CardIcons::26
|
||||
|
||||
Rarity: Epic
|
||||
|
||||
Target: planet = Object
|
||||
|
||||
Color: #ccc74e
|
||||
Class: Action
|
||||
|
||||
Base Purchase Cost: 4
|
||||
Base Play Cost: 4
|
||||
|
||||
TargetFilterType(planet, Planet)
|
||||
TargetFilterOwned(planet)
|
||||
TargetFilterNotStatus(planet, SenateBuilding)
|
||||
TargetFilterNotStatus(planet, UnitedResearch)
|
||||
TargetFilterNotStatus(planet, GalaxyMall)
|
||||
ApplyRegionTargetCostMod(planet)
|
||||
RequireContact()
|
||||
|
||||
PlayCostFromGlobal(GalaxyMallCount, 4.0)
|
||||
PlayMoneyCostFromGlobal(GalaxyMallCount, 500, Base = 500)
|
||||
|
||||
ShowGlobalValue(AttributeIcons::2, #VAR_BUILD_COST_DECREASE, GalaxyMallCount, Factor = 5.0, Base = 10.0, Suffix = %)
|
||||
|
||||
TriggerAllPlanets(RemoveStatus(GalaxyMall))
|
||||
Trigger(planet, AddStatus(GalaxyMall))
|
||||
ModGlobal(GalaxyMallCount, +1.0)
|
||||
NotifyAll(#NOTIFY_GALAXY_MALL)
|
||||
|
||||
AI: PlayOnImportantPlanets(planet)
|
||||
AI: IgnoreIfAttributeGTE(HaveGalaxyMall, 1)
|
||||
@@ -0,0 +1,45 @@
|
||||
Card: SenateBuilding
|
||||
Name: #CARD_SENATE_BUILDING
|
||||
Description: #CARD_SENATE_BUILDING_DESC
|
||||
Icon: CardIcons::27
|
||||
|
||||
Rarity: Epic
|
||||
|
||||
Target: planet = Object
|
||||
|
||||
Color: #764ecc
|
||||
Class: Vote
|
||||
|
||||
Base Purchase Cost: 4
|
||||
Base Play Cost: 6
|
||||
|
||||
TargetFilterType(planet, Planet)
|
||||
TargetFilterOwned(planet)
|
||||
TargetFilterNotStatus(planet, SenateBuilding)
|
||||
TargetFilterNotStatus(planet, UnitedResearch)
|
||||
TargetFilterNotStatus(planet, GalaxyMall)
|
||||
ApplyRegionTargetCostMod(planet)
|
||||
RequireContact()
|
||||
|
||||
PlayCostFromGlobal(SenateBuildingCount, 5.0)
|
||||
|
||||
ShowGlobalValue(DesignationIcons::1, #VAR_INFLUENCE_INCOME, SenateBuildingCount, Factor = 2.0, Base = 2.0, Suffix = +Lv)
|
||||
|
||||
StartVote(SenateBuilding, planet)
|
||||
|
||||
AI: PlayOnImportantPlanets(planet)
|
||||
AI: IgnoreIfAttributeGTE(HaveSenateBuilding, 1)
|
||||
|
||||
Vote: SenateBuilding
|
||||
Name: #VOTE_SENATE_BUILDING
|
||||
Icon: CardIcons::27
|
||||
|
||||
Target: planet = Object
|
||||
CancelOnLost(planet)
|
||||
|
||||
ModGlobal(Pass, SenateBuildingCount, +1.0)
|
||||
|
||||
TriggerAllPlanets(RemoveStatus(SenateBuilding))
|
||||
Trigger(planet, AddStatus(SenateBuilding))
|
||||
|
||||
AI: BadIfAttributeGTE(HaveSenateBuilding, 1.0, Weight = 10.0, Importance = 2.0)
|
||||
@@ -0,0 +1,45 @@
|
||||
Card: UnitedResearch
|
||||
Name: #CARD_UNITED_RESEARCH
|
||||
Description: #CARD_UNITED_RESEARCH_DESC
|
||||
Icon: CardIcons::28
|
||||
|
||||
Rarity: Epic
|
||||
|
||||
Target: planet = Object
|
||||
|
||||
Color: #4ea2cc
|
||||
Class: Vote
|
||||
|
||||
Base Purchase Cost: 4
|
||||
Base Play Cost: 6
|
||||
|
||||
TargetFilterType(planet, Planet)
|
||||
TargetFilterOwned(planet)
|
||||
TargetFilterNotStatus(planet, SenateBuilding)
|
||||
TargetFilterNotStatus(planet, UnitedResearch)
|
||||
TargetFilterNotStatus(planet, GalaxyMall)
|
||||
ApplyRegionTargetCostMod(planet)
|
||||
RequireContact()
|
||||
|
||||
PlayCostFromGlobal(UnitedResearchCount, 5.0)
|
||||
|
||||
ShowGlobalValue(DesignationIcons::5, #VAR_RESEARCH_INCOME, UnitedResearchCount, Factor = 2.0, Base = 2.0, Suffix = +Lv)
|
||||
|
||||
StartVote(UnitedResearch, planet)
|
||||
|
||||
AI: PlayOnImportantPlanets(planet)
|
||||
AI: IgnoreIfAttributeGTE(HaveUnitedResearch, 1)
|
||||
|
||||
Vote: UnitedResearch
|
||||
Name: #VOTE_UNITED_RESEARCH
|
||||
Icon: CardIcons::27
|
||||
|
||||
Target: planet = Object
|
||||
CancelOnLost(planet)
|
||||
|
||||
ModGlobal(Pass, UnitedResearchCount, +1.0)
|
||||
|
||||
TriggerAllPlanets(RemoveStatus(UnitedResearch))
|
||||
Trigger(planet, AddStatus(UnitedResearch))
|
||||
|
||||
AI: BadIfAttributeGTE(HaveUnitedResearch, 1.0, Weight = 10.0, Importance = 2.0)
|
||||
Reference in New Issue
Block a user