Skip to content

Commit

Permalink
[#71] Tripled corruption rate, added assorted localization and a desi…
Browse files Browse the repository at this point in the history
…gn stat for corruption.
  • Loading branch information
DaloLorn committed Jan 25, 2023
1 parent 71e145f commit ede4259
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 8 deletions.
6 changes: 4 additions & 2 deletions Rising Stars/data/abilities/traits/CorruptPlanet.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ Ability: CorruptPlanet

IsToggleTarget(targ)
IsAutoColonize()
ABEM_races::TriggerTargetAccumulated(targ, RemoveStatus(Corrupted), 180, Sys.CorruptRate:1)
ABEM_races::TriggerTargetAccumulated(targ, AddStatus(Corrupted, Set Origin Empire = True), 180, Sys.CorruptRate:1)
ABEM_races::TriggerTargetAccumulated(targ, RemoveStatus(Corrupted), 59, Sys.CorruptRate:1)
ABEM_races::TriggerTargetAccumulated(targ, AddStatus(Corrupted, Set Origin Empire = True), 60, Sys.CorruptRate:1)

ShowSubsystemVariable(Sys.CorruptRate:1, Format = #TIME_S, Name = #S_CORRUPT_RATE, Icon = ContextIcons::1, Color = #80baff, Efficiency = True)
8 changes: 8 additions & 0 deletions Rising Stars/data/design_stats/z_RS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,14 @@ SubsystemStat: HardenerMitigationFactor

Variable: HardenerMitigationFactor

SubsystemStat: CorruptRate
Name: #S_CORRUPT_RATE
Icon: TechIcons::1
Color: #9ed6ff
Suffix: /s

Variable: CorruptRate

// *************************************
// *********HEX-SPECIFIC STATS**********
// *************************************
Expand Down
16 changes: 11 additions & 5 deletions Rising Stars/locales/english/RS_abilities.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,23 +168,29 @@ ABL_SHADOWPORT_UNPACK: Unpack Shadowport
ABL_SHADOWPORT_UNPACK_DESC: <<
Unpack the shadowport at the designated location. The shadowport will use its sublight drive to travel to the destination before diverting engine power to resource processing facilities.

Unpacked shadowports cannot move or be tractored, but can receive resources from planets corrupted by their owner, and generate a limited amount of income and Labor.
Unpacked shadowports cannot move or be tractored, but they become deadlier and harder to destroy. In addition, they can receive resources from any racketeering operations they are managing, and generate a limited amount of income and Labor.

NOTE: Shadowports can only receive resources from corrupted planets they can trade to. Shadowports in interstellar space are therefore unable to receive resources from any planets.
NOTE: Shadowports can only receive racketeering income from planets in their trade range. Shadowports in interstellar space are therefore unable to receive resources from any planets.
>>
ABL_SHADOWPORT_PACK: Pack Up Shadowport
ABL_SHADOWPORT_PACK_DESC: <<
Deactivate the shadowport's resource processors and redirect power to its propulsion systems.

Packed shadowports cannot receive resources from corrupted planets and lose their innate income and Labor (Construction Bays/Ore Processors are not affected), but can use their engines to move around the galaxy.
Packed shadowports cannot receive resources from corrupted planets, become more fragile and weaker in combat, and lose their innate income and Labor (Construction Bays/Ore Processors are not affected), but can use their engines to move around the galaxy.
>>
ABL_RACKETEERING: Begin Racketeering
ABL_RACKETEERING_DESC: <<
Take advantage of our influence over a planet's government and infrastructure to set up a racketeering operation, redirecting part of its industrial output to the Shadowport.

Steals 20% of the targeted corrupted planet's civilian resource production and grants it to the Shadowport. Resources produced by imperial buildings or miscellaneous effects are not affected, but Materials produced by or delivered to the planet are transferred to the Shadowport.
Steals 20% of the targeted corrupted planet's civilian resource production and grants it to the Shadowport. Resources produced by most imperial buildings or miscellaneous effects are not affected, but Materials produced by or delivered to the planet are transferred to the Shadowport.

Only one Shadowport may manage a racketeering operation on a given planet; any existing operations on the planet will be transferred to this Shadowport.

NOTE: Although they can manage racketeering operations on any planet, shadowports can only receive racketeering income from planets they have trade access to.
NOTE: Although they can manage racketeering operations on any planet, Shadowports can only receive racketeering income from planets they have trade access to. Otherwise, the income is returned to its rightful owner.
>>
ABL_CORRUPT_PLANET: Corrupt Planet
ABL_CORRUPT_PLANET_DESC: <<
Uses the ship's hacker array to tap into and manipulate a planet's comm network, laying the foundations for its corruption.

A planet needs to absorb approximately 60 points of Corruption per point of Loyalty from this ship to be corrupted by it. Using multiple hacker arrays will not speed up the process.
>>
27 changes: 27 additions & 0 deletions Rising Stars/locales/english/RS_subsystems.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ STT_CHANNELPERCENTAGE: <<
S_ARMOR_PIERCE_STAT: Armor Penetration
S_PIERCE_RESISTANCE_STAT: Penetration Resistance

S_CORRUPT_RATE: Corruption Rate

// *********************************************************
// ******************SUBSYSTEMS HERE!***********************
// *********************************************************
Expand Down Expand Up @@ -922,6 +924,31 @@ S_WAR_HARVESTER_DESC: <<
[img=Minus]Build costs are tripled.[/img]
[img=MenuIcons::3;22]Cannot be used on ships under size 500.[/img]
>>
S_SHADOWPORT_HULL: Shadowport Hull
S_SHADOWPORT_HULL_DESC: <<
Typically haphazardly assembled from purchased/stolen superfreighters or abandoned space stations, shadowports are mobile fortresses and staging areas for all kinds of criminal activity. However, they grow somewhat more vulnerable on the move, as their systems generally weren't intended for the stresses of prolonged travel.

[img=Plus]Counts as a planet for victory conditions.[/img]
[img=Plus]Can unpack into a stationary base for significant economic and defensive bonuses, such as the ability to construct orbitals and asteroid mines, §400k income, and doubled health.[/img]
[img=Plus]All hex health and shield capacity is doubled (for a total of quadruple health when stationary).[/img]
[img=Plus]All damage resistance is increased by 50%.[/img]
[img=Plus]Does not require Supply to fire weapons or repair itself.[/img]
[img=Plus]Weapon range, firing arcs, and accuracy are increased to that of a station.[/img]
[img=Minus]Mass is doubled.[/img]
[img=Minus]Support capacity is halved. Fleet effectiveness is halved when mobile.[/img]
[img=Minus]Weapon damage is reduced by 25%.[/img]
[img=Minus]Maintenance cost cannot be reduced below §500k (for a total of §100k when stationary).[/img]
[img=MenuIcons::3;22]Cannot be used on ships under size 500.[/img]
>>
S_HACKER_ARRAY: Hacker Array
S_HACKER_ARRAY_DESC: <<
A powerful array of computational and communications equipment specialized for the task of tapping and manipulating planetary communications networks as a prelude to corruption.

[img=Plus]Can be used to corrupt planets, granting vision, trade access, and the ability to order a Shadowport to start a profitable racketeering operation on them.[/img]
[img=Plus]Larger hacker arrays corrupt faster. A planet needs to absorb approximately 60 points of Corruption per point of Loyalty from a given hacker array to become corrupted by your empire.[/img]
[img=Minus]Costs Influence to build. Larger hacker arrays cost more.[/img]
[img=MenuIcons::3;22]Cannot be used on ships under size 64.[/img]
>>
S_SUPPORT_SHRINE_DESC: <<
A shrine to honor the Goddess of Wisdom, Alephatra, and built under her guiding hand. Praying to this shrine protects the ship from harm.

Expand Down
2 changes: 1 addition & 1 deletion Rising Stars/scripts/definitions/ABEM_version.as
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import version;
import CP_version;

// ABEMMOD's last revision was 724.
const string MOD_REVISION = "1334";
const string MOD_REVISION = "1335";
const array<string> VERSIONS = {
"v2.0.3",
"OpenSR v1.0.0",
Expand Down

0 comments on commit ede4259

Please sign in to comment.