teinarss
13581c030d
Use in parameter for Target
2020-11-06 22:02:24 +01:00
Pavel Penev
f0578a75f4
Cleaned up DamageWarhead
...
Reordered methods and fixed access modifiers. Also removed unused using statements from warheads.
2020-05-27 10:28:25 +02:00
reaperrr
ac57a37224
DamageWarhead polish
...
Use BitSet.IsEmpty.
2020-05-09 17:56:08 +02:00
reaperrr
2b4035979b
Make all warheads use WarheadArgs
...
Instead of passing damageModifiers directly.
2020-05-02 03:09:18 +03:00
reaperrr
9dcba8710b
Add turret-linking support to HitShape
...
Allows to link a HitShape to the
position and facing of a turret.
2020-01-25 13:38:35 +01:00
reaperrr
6220d7e62e
Introduce WarheadArgs
...
- Passes additional arguments to warheads on impact
- Uses that to reduce parameter count of DoImpact by 1
2020-01-21 19:31:34 +01:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
reaperrr
8edd202b64
Move InflictDamage method back to DamageWarhead
...
From TargetDamageWarhead.
Saves a few lines and allows warheads that are not
TargetDamageWarhead-based to use it.
2019-08-27 23:05:19 +02:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
Mustafa Alperen Seki
6a599e57f6
Remove check for full health for negative damage warheads
2018-11-21 19:25:45 +01:00
Andre Mohren
8b8a14e0b8
Proper usage of IHealthInfo.
2018-10-30 20:59:04 +00:00
reaperrr
f18ce8cfda
Make HitShape mandatory for damaging actors and refactor warheads.
...
* Adds support for linking Armor traits to HitShapes.
* Adds spread support to TargetDamageWarhead
* Removes ring-damage support from HealthPercentageDamage
* Removes IsValidAgainst check from DoImpact(Actor victim...) overload
and instead lets warheads perform the check beforehand
(to avoid HitShape look-ups on invalid targets).
* Reduces duplication and improves readability of Warhead implementations
2018-10-26 22:03:34 +02:00
reaperrr
ade85f8977
Skip DamageWarhead armor lookups if no Versus defined
...
- directly return 100 when no Versus values are defined (meaning the warhead would have 100% efficiency vs. all armor types anyway)
2018-09-29 12:54:34 +01:00
Chris Forbes
d4ef841678
Convert masses of HashSet<string> to BitSet<DamageType>
2018-07-28 20:12:42 +01:00
Mustafa Alperen Seki
5e7e3bb011
Add DamageTypes to Kill() and make some traits use it.
2018-03-09 00:25:29 +01:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
atlimit8
4767b91037
Remove LoadUsing where FieldLoader.GetValue works for the dictionaries
2017-04-19 09:51:06 -05:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Zimmermann Gyula
cf8fff2b99
Remove passing the warheads from DamageWarhead to AttackInfo.
...
Added a Damage class to pass damage value and damage(types) instead.
This removes a great amount of overhead and longterm opens possibilities to have damagetypes without warheads.
2016-07-12 10:09:49 +02:00
Paul Chote
e71225496b
Clarify GPL version.
2016-02-21 16:30:48 +00:00
Paul Chote
b396965fd9
Update licence header year.
2016-02-21 16:27:31 +00:00
Zimmermann Gyula
0f14339763
Fix (HealthPercentage)DamageWarheads ignoring stances/TargetTypes.
...
Moves the IsValidAgainst check from SpreadDamage level to Damage level
and adds a duplication to HealthPercentageDamageWarhead.
2015-11-01 21:06:54 +01:00
Matija Hustić
d94c645046
First step in the attack mechanism's refactor.
...
Enabled firing multiple armaments at a target simultaneously.
Each armament defines own cursor for targeting.
The force attack modifier influences armament choice for target.
Autotargeting modified to handle firing multiple armaments simultaneously.
As a consequence, healers (medics) no longer require separate Heal
activity and AttackMedic and AutoHeal traits.
2015-10-06 01:46:55 +02:00
RoosterDragon
901e604cf3
Replace arrays with sets.
...
In places where arrays were being treated as a set, just create a set directly. This reveals the intention of such collections better, and also improves performance by allowing set based methods to be used.
2015-09-03 20:09:24 +01:00
reaperrr
7f7031d5c8
Update outdated description
2015-09-01 13:52:09 +02:00
Zimmermann Gyula
4aba64cc0f
Fix armors.
2015-09-01 13:52:08 +02:00
reaperrr
508c99655c
Made Armor upgradable
2015-08-25 20:12:37 +02:00
reaperrr
277ac04f85
Remove legacy 0% = not targetable assumption
2015-08-09 01:11:10 +02:00
reaperrr
89f3718aa7
Move Armor trait to Mods.Common
2015-07-27 21:12:03 +02:00
penev92
fe94b7686e
Introduce IWarhead and move Warhead to Mods.Common
2015-07-06 22:24:20 +03:00