Open source Star Ruler 2 source code!
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
Card: AncientKnowledge
|
||||
Name: #CARD_ANCIENT_KNOWLEDGE
|
||||
Description: #CARD_ANCIENT_KNOWLEDGE_DESC
|
||||
|
||||
Icon: CardIcons::36
|
||||
Color: #f88
|
||||
|
||||
Class: Support
|
||||
Side: Both
|
||||
Rarity: Rare
|
||||
|
||||
Base Purchase Cost: 2
|
||||
Base Play Cost: 4
|
||||
|
||||
Base Weight: 3
|
||||
|
||||
WeightPerEmpirePresent(1, Weigh Self = True)
|
||||
TriggerVotePresent(GainInfluenceCard(AncientIntuition))
|
||||
|
||||
LogVoteEvent(Support = #CARD_ANCIENT_KNOWLEDGE_LOG_Y, Oppose = #CARD_ANCIENT_KNOWLEDGE_LOG_N)
|
||||
|
||||
AI: VoteSupport()
|
||||
|
||||
Card: AncientIntuition
|
||||
Name: #CARD_ANCIENT_INTUITION
|
||||
Description: #CARD_ANCIENT_INTUITION_DESC
|
||||
|
||||
Icon: CardIcons::37
|
||||
Color: #e780ff
|
||||
|
||||
Class: Support
|
||||
Side: Both
|
||||
Rarity: Rare
|
||||
Frequency: 0
|
||||
|
||||
Base Weight: 1
|
||||
|
||||
LogVoteEvent(Support = #CARD_ANCIENT_INTUITION_LOG_Y, Oppose = #CARD_ANCIENT_INTUITION_LOG_N)
|
||||
|
||||
AI: VoteSupport()
|
||||
@@ -0,0 +1,31 @@
|
||||
Card: Assurances
|
||||
Name: #CARD_ASSURANCES
|
||||
Description: #CARD_ASSURANCES_DESC
|
||||
|
||||
Color: #00faff
|
||||
|
||||
Class: Support
|
||||
Rarity: Epic
|
||||
Side: Both
|
||||
Frequency: 0
|
||||
|
||||
Icon: CardIcons::24 * #ff0000
|
||||
|
||||
Max Quality: 3
|
||||
|
||||
Base Purchase Cost: 1
|
||||
Quality Purchase Cost: 1
|
||||
|
||||
Base Play Cost: 2
|
||||
Quality Play Cost: 1
|
||||
|
||||
Base Weight: 5
|
||||
Quality Weight: 2
|
||||
|
||||
ShowDuration(600)
|
||||
|
||||
OnOwner( ModAttributeTimed(ExtraInfluenceBuyCost, Add, 1.0, Duration = 600.0) )
|
||||
|
||||
LogVoteEvent(Support = #CARD_ASSURANCES_LOG_Y, Oppose = #CARD_ASSURANCES_LOG_N)
|
||||
|
||||
AI: VoteSupport()
|
||||
@@ -0,0 +1,30 @@
|
||||
Card: Bribe
|
||||
Name: #CARD_BRIBE
|
||||
Description: #CARD_BRIBE_DESC
|
||||
|
||||
Icon: CardIcons::3
|
||||
|
||||
Color: #3893a8
|
||||
|
||||
Class: Support
|
||||
Rarity: Uncommon
|
||||
Side: Both
|
||||
Frequency: 0
|
||||
|
||||
Max Quality: 4
|
||||
Max Uses: 3
|
||||
|
||||
Base Purchase Cost: 1
|
||||
Uses Purchase Cost: 1
|
||||
|
||||
Base Play Cost: 1
|
||||
|
||||
Base Weight: 0
|
||||
|
||||
LogVoteEvent(Support = #CARD_BRIBE_LOG_Y, Oppose = #CARD_BRIBE_LOG_N, MoneyArgument = 300, MoneyArgumentQuality = 100)
|
||||
|
||||
PlayMoneyCost(300, Per Quality = 100)
|
||||
AddWeightToNextSupport(VoteSide, 2, Per Quality = 1.5)
|
||||
GiveMoneyToNextSupport(VoteSide, 300, Per Quality = 100)
|
||||
|
||||
AI: VoteSupport()
|
||||
@@ -0,0 +1,38 @@
|
||||
Card: CallOut
|
||||
Name: #CARD_CALLOUT
|
||||
Description: #CARD_CALLOUT_DESC
|
||||
Color: #a893a8
|
||||
|
||||
Icon: CardIcons::4
|
||||
|
||||
Class: Support
|
||||
Rarity: Common
|
||||
Side: Neutral
|
||||
|
||||
Max Uses: 3
|
||||
Max Quality: 2
|
||||
|
||||
Base Purchase Cost: 1
|
||||
Uses Purchase Cost: 1
|
||||
|
||||
Base Play Cost: 4
|
||||
|
||||
Base Weight: 0
|
||||
|
||||
LogVoteEvent(Neutral = #CARD_CALLOUT_LOG)
|
||||
|
||||
Target: target = Empire
|
||||
TargetFilterOtherEmpire(target)
|
||||
GenerateRandomEmpire(target, Generic Chance = 0.5)
|
||||
DisappearSelfBuy(target)
|
||||
|
||||
LimitPerVote(1, Match Targets = True)
|
||||
ExtendRemainingTimeTo(60)
|
||||
|
||||
CalloutEmpire(target, Leverage Quality = 4.0)
|
||||
AddWeightToNextSupportBy(target, 3, Per Quality = 3)
|
||||
ListActiveIfNotVotedAfterThis(target)
|
||||
Notify(target, #CARD_CALLOUT_NOTIFICATION)
|
||||
|
||||
AI: VoteOnAlly(target, Min Vote = 0, Allied Only = True)
|
||||
AI: NotInRace()
|
||||
@@ -0,0 +1,31 @@
|
||||
Card: Committee
|
||||
Name: #CARD_COMMITTEE
|
||||
Description: #CARD_COMMITTEE_DESC
|
||||
|
||||
Icon: CardIcons::48
|
||||
Color: #5ffd9a
|
||||
|
||||
Leader Only: True
|
||||
DLC: Heralds
|
||||
|
||||
Class: Support
|
||||
Rarity: Epic
|
||||
Side: Both
|
||||
|
||||
Base Purchase Cost: 5
|
||||
Base Play Cost: 5
|
||||
|
||||
Base Weight: 10
|
||||
|
||||
RequireValidVoteStarter()
|
||||
ListActiveEffect()
|
||||
|
||||
RequireNotActiveEffect(Filibuster)
|
||||
RequireNotActiveEffect(Committee)
|
||||
|
||||
LogVoteEvent(Support = #CARD_COMMITTEE_LOG_Y, Oppose = #CARD_COMMITTEE_LOG_N)
|
||||
|
||||
LimitPerVote(1, Per Empire = False)
|
||||
DelayVote(120)
|
||||
|
||||
AI: VoteSupport()
|
||||
@@ -0,0 +1,34 @@
|
||||
Card: Eject
|
||||
Name: #CARD_EJECT
|
||||
Description: #CARD_EJECT_DESC
|
||||
Color: #e94505
|
||||
|
||||
Icon: CardIcons::32
|
||||
|
||||
Leader Only: True
|
||||
DLC: Heralds
|
||||
|
||||
Class: Support
|
||||
Rarity: Epic
|
||||
Side: Neutral
|
||||
|
||||
Base Purchase Cost: 5
|
||||
Base Play Cost: 10
|
||||
|
||||
Base Weight: 0
|
||||
|
||||
LogVoteEvent(Neutral = #CARD_EJECT_LOG)
|
||||
Notify(target, #CARD_EJECT_NOTIFICATION)
|
||||
|
||||
Target: target = Empire
|
||||
TargetFilterOtherEmpire(target)
|
||||
|
||||
LimitPerVote(1, Per Empire = False)
|
||||
|
||||
EjectFromVote(target)
|
||||
GiveLeverageTo(target, 5.0)
|
||||
|
||||
DisallowInVote(GalacticSuperpower)
|
||||
DisallowInVote(GalacticUtopia)
|
||||
|
||||
AI: VoteAgainstEmpire(target, Min Vote = 7, Most Only = True)
|
||||
@@ -0,0 +1,29 @@
|
||||
Card: Empower
|
||||
Name: #CARD_EMPOWER
|
||||
Description: #CARD_EMPOWER_DESC
|
||||
Color: #4996bb
|
||||
|
||||
Icon: CardIcons::33
|
||||
|
||||
Leader Only: True
|
||||
DLC: Heralds
|
||||
|
||||
Class: Support
|
||||
Rarity: Epic
|
||||
Side: Neutral
|
||||
|
||||
Base Purchase Cost: 4
|
||||
Base Play Cost: 6
|
||||
|
||||
Base Weight: 0
|
||||
|
||||
LogVoteEvent(Neutral = #CARD_EMPOWER_LOG)
|
||||
|
||||
Target: target = Empire
|
||||
TargetFilterOtherEmpire(target)
|
||||
|
||||
LimitPerVote(1, Per Empire = False)
|
||||
AddWeightToNextSupportBy(target, 1, Limited = False)
|
||||
|
||||
AI: VoteOnAlly(target, Min Vote = 7, Allied Only = False, Most Only = True)
|
||||
AI: NotInRace()
|
||||
@@ -0,0 +1,26 @@
|
||||
Card: EnergyClash
|
||||
Name: #CARD_ENERGY_CLASH
|
||||
Description: #CARD_ENERGY_CLASH_DESC
|
||||
|
||||
Icon: CardIcons::3
|
||||
Color: #42b4bd
|
||||
|
||||
Class: Support
|
||||
Frequency: 7
|
||||
Rarity: Common
|
||||
Side: Both
|
||||
|
||||
Min Uses: 2
|
||||
Max Uses: 5
|
||||
|
||||
Base Purchase Cost: 0
|
||||
Uses Purchase Cost: 1
|
||||
|
||||
Base Weight: 2
|
||||
|
||||
PlayEnergyCostPerPlay(Base Cost = 200, Per Play = 100, Same Side = False)
|
||||
WeightPerPlay(Weight = 2, Same Side = False)
|
||||
|
||||
LogVoteEvent(Support = #CARD_ENERGY_CLASH_LOG_Y, Oppose = #CARD_ENERGY_CLASH_LOG_N)
|
||||
|
||||
AI: VoteSupport()
|
||||
@@ -0,0 +1,26 @@
|
||||
Card: Filibuster
|
||||
Name: #CARD_FILIBUSTER
|
||||
Description: #CARD_FILIBUSTER_DESC
|
||||
Color: #fe5c99
|
||||
|
||||
Icon: CardIcons::30
|
||||
|
||||
DLC: Heralds
|
||||
|
||||
Class: Support
|
||||
Rarity: Epic
|
||||
Side: Neutral
|
||||
|
||||
Base Purchase Cost: 6
|
||||
Base Play Cost: 6
|
||||
|
||||
RequireValidVoteStarter()
|
||||
ListActiveEffect()
|
||||
|
||||
RequireNotActiveEffect(Filibuster)
|
||||
RequireNotActiveEffect(Committee)
|
||||
|
||||
LogVoteEvent(Neutral = #CARD_FILIBUSTER_LOG)
|
||||
DelayVote(180)
|
||||
|
||||
AI: VoteAlwaysNegative()
|
||||
@@ -0,0 +1,27 @@
|
||||
Card: Hedge
|
||||
Name: #CARD_HEDGE
|
||||
Description: #CARD_HEDGE_DESC
|
||||
|
||||
Icon: CardIcons::39
|
||||
|
||||
Color: #fff700
|
||||
|
||||
Class: Support
|
||||
Side: Neutral
|
||||
Rarity: Rare
|
||||
|
||||
Max Uses: 2
|
||||
|
||||
Base Play Cost: 3
|
||||
Base Purchase Cost: 1
|
||||
Uses Purchase Cost: 1
|
||||
|
||||
LimitPerVote(1, Per Empire = False)
|
||||
ExtendRemainingTimeTo(60)
|
||||
ListActiveEffect()
|
||||
RequireStartingCard()
|
||||
|
||||
LogVoteEvent(Neutral = #CARD_HEDGE_LOG)
|
||||
GainStartingCard(Fail)
|
||||
|
||||
AI: VoteAlwaysNegative(0.5)
|
||||
@@ -0,0 +1,25 @@
|
||||
Card: Intelligence
|
||||
Name: #CARD_INTELLIGENCE
|
||||
Description: #CARD_INTELLIGENCE_DESC
|
||||
|
||||
Icon: CardIcons::38
|
||||
Color: #ff8444
|
||||
|
||||
Class: Support
|
||||
Side: Both
|
||||
|
||||
Frequency: 0
|
||||
|
||||
Base Weight: 6
|
||||
Base Play Cost: 3
|
||||
|
||||
Target: onEmpire = Empire
|
||||
GenerateRandomEmpire(onEmpire)
|
||||
LimitVoteToOppose(onEmpire)
|
||||
WeightPerPlay(-2, Same Side = False, Same Empire = False, Match Targets = True)
|
||||
LimitPerVote(3, Per Empire = False, Per Side = False, Match Targets = True)
|
||||
|
||||
AnonymousVoteEvent(Support = #CARD_INTELLIGENCE_LOG_Y, Oppose = #CARD_INTELLIGENCE_LOG_N)
|
||||
AnonymizeVoteSupport()
|
||||
|
||||
AI: VoteAgainstEmpire(onEmpire)
|
||||
@@ -0,0 +1,28 @@
|
||||
Card: Leverage
|
||||
Name: #CARD_LEVERAGE
|
||||
Description: #CARD_LEVERAGE_DESC
|
||||
|
||||
Icon: CardIcons::5
|
||||
|
||||
Color: #ff8444
|
||||
|
||||
Class: Support
|
||||
Frequency: 7
|
||||
Side: Both
|
||||
|
||||
Max Quality: 3
|
||||
|
||||
Base Purchase Cost: 1
|
||||
Quality Purchase Cost: 1
|
||||
|
||||
QualityWeightLevel(3, 5, 8)
|
||||
|
||||
Target: onEmpire = Empire
|
||||
GenerateRandomEmpire(onEmpire)
|
||||
LimitVoteToOppose(onEmpire)
|
||||
DisappearSelfBuy(onEmpire)
|
||||
|
||||
LogVoteEvent(Support = #CARD_LEVERAGE_LOG_Y, Oppose = #CARD_LEVERAGE_LOG_N)
|
||||
|
||||
AI: BuyAgainstEnemies(onEmpire, 2.0)
|
||||
AI: VoteAgainstEmpire(onEmpire, 2.0)
|
||||
@@ -0,0 +1,27 @@
|
||||
Card: Negotiate
|
||||
Name: #CARD_NEGOTIATE
|
||||
Description: #CARD_NEGOTIATE_DESC
|
||||
|
||||
Icon: CardIcons::6
|
||||
Color: #00ffa4
|
||||
|
||||
Class: Support
|
||||
Frequency: 20
|
||||
Rarity: Basic
|
||||
Side: Both
|
||||
|
||||
Max Quality: 3
|
||||
Max Uses: 2
|
||||
|
||||
Base Purchase Cost: 1
|
||||
Uses Purchase Cost: 2
|
||||
Quality Purchase Cost: 1
|
||||
|
||||
QualityWeightLevel(2, 4, 8, 10)
|
||||
QualityPlayCostLevel(2, 3, 4, 5)
|
||||
|
||||
AddWeightEmpireAttribute(NegotiateExtraWeight)
|
||||
|
||||
LogVoteEvent(Support = #CARD_NEGOTIATIONS_LOG_Y, Oppose = #CARD_NEGOTIATIONS_LOG_N)
|
||||
|
||||
AI: VoteSupport()
|
||||
@@ -0,0 +1,30 @@
|
||||
Card: Promises
|
||||
Name: #CARD_PROMISES
|
||||
Description: #CARD_PROMISES_DESC
|
||||
|
||||
Color: #fa00ff
|
||||
|
||||
Class: Support
|
||||
Rarity: Uncommon
|
||||
Side: Both
|
||||
Frequency: 0
|
||||
|
||||
Icon: CardIcons::24
|
||||
|
||||
Max Quality: 3
|
||||
|
||||
Base Purchase Cost: 1
|
||||
Quality Purchase Cost: 1
|
||||
|
||||
Base Play Cost: 2
|
||||
Quality Play Cost: 1
|
||||
|
||||
Base Weight: 5
|
||||
Quality Weight: 2
|
||||
|
||||
ShowDuration(300)
|
||||
OnOwner( ModAttributeTimed(SupportCardCostMod, Add, 1.0, Duration = 300.0) )
|
||||
|
||||
LogVoteEvent(Support = #CARD_PROMISES_LOG_Y, Oppose = #CARD_PROMISES_LOG_N)
|
||||
|
||||
AI: VoteSupport()
|
||||
@@ -0,0 +1,33 @@
|
||||
Card: Rhetoric
|
||||
Name: #CARD_RHETORIC
|
||||
Description: #CARD_RHETORIC_DESC
|
||||
|
||||
Icon: CardIcons::21
|
||||
|
||||
Color: #ff8044
|
||||
|
||||
Class: Support
|
||||
Rarity: Uncommon
|
||||
Side: Both
|
||||
Frequency: 0
|
||||
|
||||
Max Quality: 3
|
||||
|
||||
Max Uses: 6
|
||||
|
||||
Base Purchase Cost: 2
|
||||
Uses Purchase Cost: 1
|
||||
|
||||
Base Play Cost: 4
|
||||
Quality Play Cost: 1
|
||||
|
||||
Base Weight: 1
|
||||
Quality Weight: 1
|
||||
|
||||
LogVoteEvent(Support = #CARD_RHETORIC_LOG_Y, Oppose = #CARD_RHETORIC_LOG_N)
|
||||
|
||||
CostPerPlay(2)
|
||||
WeightPerPlay(1)
|
||||
OnSucceedDistributeRandomCardsToSide(3) //Long function is long
|
||||
|
||||
AI: VoteSupport()
|
||||
@@ -0,0 +1,28 @@
|
||||
Card: Rider
|
||||
Name: #CARD_RIDER
|
||||
Description: #CARD_RIDER_DESC
|
||||
|
||||
Icon: CardIcons::7
|
||||
|
||||
Color: #00a4ff
|
||||
|
||||
Class: Support
|
||||
Side: Neutral
|
||||
|
||||
Max Uses: 3
|
||||
|
||||
Base Play Cost: 0
|
||||
Base Purchase Cost: 1
|
||||
Uses Purchase Cost: 1
|
||||
|
||||
DisableOnOwnedVotes()
|
||||
LimitPerVote(1)
|
||||
ExtendRemainingTimeTo(60)
|
||||
ListActiveEffect()
|
||||
RequireValidVoteStarter()
|
||||
|
||||
LogVoteEvent(Neutral = #CARD_RIDER_LOG)
|
||||
GainLeverageOnVoteStarter(Pass, Quality Factor = 4.0)
|
||||
|
||||
AI: VoteAlwaysPositive()
|
||||
AI: VoteNotOurs()
|
||||
@@ -0,0 +1,24 @@
|
||||
Card: Rush
|
||||
Name: #CARD_RUSH
|
||||
Description: #CARD_RUSH_DESC
|
||||
Color: #fa00ff
|
||||
|
||||
Icon: CardIcons::24
|
||||
|
||||
Class: Support
|
||||
Rarity: Rare
|
||||
Side: Neutral
|
||||
|
||||
Base Purchase Cost: 3
|
||||
Base Play Cost: 6
|
||||
|
||||
LogVoteEvent(Neutral = #CARD_RUSH_LOG)
|
||||
AlwaysActiveEffect()
|
||||
|
||||
LimitPerVote(1, Per Empire = False)
|
||||
MultiplyVotePositiveSpeed(2.0)
|
||||
AddVotePositiveCostPenalty(+1)
|
||||
|
||||
CanOnlyPlayIfSupporting()
|
||||
|
||||
AI: VoteAlwaysPositive(0.4)
|
||||
Reference in New Issue
Block a user