Skip to content

Conversation

@Coronia
Copy link
Owner

@Coronia Coronia commented Nov 26, 2024

  • It is possible to customize the power output decrement of a power plant when it's damaged. The decrement will be calculated by this formula: the building type's Power multiplies its lost health percentage, then multiplies Powerplant.DamageFactor. Can't reduce power output lower than 0.
    • Specifically, if the factor is set to 0.0, power output won't be decreased by losing health for this power plant.

In rulesmd.ini:

[SOMEBUILDING]                     ; BuildingType
PowerPlant.DamageFactor=1.0        ; floating point value

@Coronia Coronia force-pushed the power-damagefactor branch 3 times, most recently from 784a0b2 to 1846221 Compare November 26, 2024 10:07
@github-actions
Copy link

github-actions bot commented Nov 26, 2024

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

@Coronia Coronia force-pushed the power-damagefactor branch 11 times, most recently from dd05d2c to 2ab6dc8 Compare November 29, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants