Paul Chote
b29b685058
Rename Fluent-related code to be more precise.
2024-10-04 15:11:27 +03:00
RoosterDragon
34a68cd2ca
Avoid keeping ActorInitializers in memory.
...
The SupportPowerManager and WithSpriteBody trait captured the ActorInitializer in lambda expressions, which keeps it alive as long as the trait. The lambdas didn't need to capture the ActorInitializer, so rejig them to allow the ActorInitializer to be reclaimed after the traits have been created. As the TypeDictionary in the ActorInitializer can be quite large, this helps reduce memory usage.
2024-06-16 13:19:07 +03:00
Matthias Mailänder
69d9bbb400
Unhardcode support power blocked cursor.
2024-05-19 14:43:59 +03:00
Gustas
cf21c8e906
Fix support power name not really being optional
2024-04-10 23:52:43 +02:00
RoosterDragon
e6914f707a
Introduce FirstOrDefault extensions method for Array.Find and List.Find.
...
This allows the LINQ spelling to be used, but benefits from the performance improvement of the specific methods for these classes that provide the same result.
2023-11-19 19:28:57 +02:00
RoosterDragon
acca837142
Fix RCS1246
2023-11-19 19:28:57 +02:00
RoosterDragon
330ca92045
Fix RCS1077
2023-11-19 19:28:57 +02:00
RoosterDragon
c8efc5fdd7
Fix CA1854
2023-11-16 09:29:17 +02:00
Matthias Mailänder
1899eed839
Add localisation support to transient lines.
2023-08-19 20:46:04 +03:00
RoosterDragon
231bf01f18
Fix CA1854
2023-06-20 17:57:40 +02:00
RoosterDragon
8a285f9b19
Fix IDE0090
2023-04-08 16:51:51 +03:00
RoosterDragon
98c4eaca83
Fix IDE0032
2023-03-14 13:41:25 +02:00
abcdefg30
5bf7fe852c
Remove the copyright year numbers
2023-01-11 11:58:54 +02:00
abcdefg30
6a31b1f9f3
Update the copyright header year
2022-05-28 00:35:10 -05:00
Eduardo Cáceres
79f321cb44
.Any(), .Count() -> .Count or .Length
2022-05-18 11:42:36 -05:00
Ivaylo Draganov
24b9482cc1
Add support for transient text notifications matching speech notifications
2022-04-30 12:39:29 +01:00
Matthias Mailänder
07815143f1
Fix CA1825 warnings on empty array initialisation.
2021-12-06 13:19:28 +01:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
Matthias Mailänder
5a0bcc01a6
Add a lint check for trait placement on hardcoded actor names.
2021-04-11 20:20:00 +02:00
teinarss
4a1e4f3e16
Use expression body syntax
2021-03-07 13:00:52 +00:00
Paul Chote
e990a83b7a
Cancel support power targeting if power cannot be activated.
2021-01-10 22:42:32 +01:00
abc013
672172d1f1
Add missing PlayNotification calls to SelectTarget.
2020-11-12 19:52:06 +00:00
teinarss
9c4fd0e3d3
Use Null-Propagation Operator
2020-08-19 18:11:07 +01:00
teinarss
27f1a7ab27
Use out var syntax
2020-08-19 18:11:07 +01:00
Paul Chote
ad75e2be89
Remove redundant check from SupportPowerInstance.
2020-08-16 14:17:45 +02:00
Paul Chote
86f61298e6
Replace ITraitInfo interface with TraitInfo class.
2020-05-21 13:01:04 +02:00
Matthias Mailänder
a1c9b27057
Add InfiltrateForSupportPowerReset
2020-04-27 16:06:32 +02:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
reaperrr
9d7ecdbc2c
Disable SupportPowerInstances when player lost
...
Fixes bots using player actor powers after defeat.
2019-12-30 22:50:54 +01:00
Paul Chote
f39b688c39
Add GrantPrerequisiteChargeDrainPower and DrainPrerequisitePowerOnDamage.
...
These traits implement the Firestorm defense charge/drain logic.
2019-11-17 17:06:29 +01:00
Paul Chote
1fa90c0474
Allow support powers to override the icon overlay/tooltip labels.
2019-11-17 17:06:29 +01:00
Paul Chote
70b020205d
Rename *Time to *Ticks and increase internal resolution.
2019-11-17 17:06:29 +01:00
Paul Chote
e03abdc0da
Add support for custom SupportPowerInstances.
2019-11-17 17:06:29 +01:00
Paul Chote
7d1ce0c83b
Add annotation support to IOrderGenerator.
2019-10-20 23:46:33 +02:00
teinarss
1dd90a1d7b
Pushed down the MouseInput handling to the OrderGenerators and made a base class for handling the basic logic
2019-04-04 20:10:34 +02:00
Paul Chote
71dd84b9d5
Fix invalid target crash in SupportPowerManager.Activate.
2019-03-10 13:26:49 +01:00
Paul Chote
6dcd23e874
Remove Order.TargetLocation from support powers.
2019-03-04 18:08:42 +00:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
Andre Mohren
ef7c49c116
Allow mods to determine associated SuperPower from SelectGenericPowerTarget
2018-09-12 15:11:18 +02:00
Mustafa Alperen Seki
3ed8e4b4e8
Make SPM not fire from an actor with disabled instance of a SW.
2018-02-06 21:09:38 +01:00
Mustafa Alperen Seki
99eedfd0e7
Make SupportPowerChargeBar conditional
2018-02-06 21:09:38 +01:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
reaperrr
b70e4de5ee
Refactor support powers to use ticks instead of seconds for all delays - code changes
...
Also renamed ChargeTime to ChargeInterval.
2017-12-28 10:04:43 +00:00
Paul Chote
d967c564a2
Remove TargetActor and TargetLocation from order issuing.
2017-10-15 19:07:46 +02:00
Paul Chote
48a018d994
Fix cheats reenabling OneShot support powers.
2017-09-19 17:53:53 +02:00
reaperrr
28e1f391e0
Make ITick require explicit implementation
2017-09-16 15:51:37 +02:00
atlimit8
431f06cd49
Convert support powers from actor disabled to pausable-conditional.
2017-05-06 17:19:43 -05:00
abcdefg30
e318c028ba
Fix support powers not being enabled by cheats
2017-02-25 16:57:30 +01:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Paul Chote
cb9178364f
Change upgradeAvailable to instancesEnabled in SupportPowerManager.
2016-12-23 15:06:22 +00:00