You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/New-or-Enhanced-Logics.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ This page describes all the engine features that are either new and introduced b
35
35
-`Tint.VisibleToHouses` can be used to control which houses can see the tint effect.
36
36
-`FirepowerMultiplier`, `ArmorMultiplier`, `SpeedMultiplier` and `ROFMultiplier` can be used to modify the object's firepower, armor strength, movement speed and weapon reload rate, respectively.
37
37
-`ArmorMultiplier.AllowWarheads` and `ArmorMultiplier.DisallowWarheads` can be used to restrict which Warheads the armor multiplier is applied to when dealing damage.
38
-
- If `ROFMultiplier.ApplyOnCurrentTimer` is set to true, `ROFMultiplier` is applied on currently running reload timer (if any) when the effect is first applied.
38
+
- If `ROFMultiplier.ApplyOnCurrentTimer` is set to true, `ROFMultiplier` is applied on currently running reload timer (if any) when the effect is first applied.
39
39
- If `Cloakable` is set to true, the object the effect is attached to is granted ability to cloak itself for duration of the effect.
40
40
-`ForceDecloak`, if set to true, will uncloak and make the object the effect is attached to unable to cloak itself for duration of the effect.
41
41
-`WeaponRange.Multiplier` and `WeaponRange.ExtraRange` can be used to multiply the weapon firing range of the object the effect is attached to, or give it an increase / decrease (measured in cells), respectively. `ExtraRange` is cumulatively applied from all attached effects after all `Multiplier` values have been applied.
@@ -554,6 +554,17 @@ In `rulesmd.ini`:
554
554
IsDestroyableObstacle=false ; boolean
555
555
```
556
556
557
+
### Power plant damage factor
558
+
559
+
- It is possible to customize the power decrement of a power plant when it's damaged. The actual power output for this plant will be: `Power` minuses the product of original power decrement and `Powerplant.DamageFactor`. Can't reduce power output lower than 0.
560
+
- Specifically, if the factor is set to 0.0, power output won't be decreased by losing health for this power plant.
561
+
562
+
In `rulesmd.ini`:
563
+
```ini
564
+
[SOMEBUILDING]; BuildingType
565
+
PowerPlant.DamageFactor=1.0 ; floating point value
566
+
```
567
+
557
568
### Power plant enhancer
558
569
559
570
- When it exists, it can increase the power amount generated by the power plants.
0 commit comments