Commit Graph

1403 Commits

Author SHA1 Message Date
reaperrr
b174d00be9 Rename UpgradeOnDamage to UpgradeOnDamageState
The trait works for 'Undamaged' as well and no longer requires a damage state change to trigger either, so this trait name is more accurate.
2016-08-18 23:31:27 +02:00
reaperrr
7f8607e85b Fix granting upgrades on initial damage state
Previously the upgrade(s) would only be granted when the damage state changed, regardless of whether the initial DamageState was already valid.
This prevented the trait from working on Undamaged actors that had just been created, for example.
2016-08-18 23:31:27 +02:00
reaperrr
adeb2a19ca Remove bogus 'OrDefault' from UpgradeOnDamage
UpgradeManager is required anyway, so this was redundant.
2016-08-18 23:31:27 +02:00
reaperrr
0ec9725c2a Merge pull request #11621 from Mailaender/text-controlgroup
Added With*ControlGroup
2016-08-18 21:25:32 +02:00
Paul Chote
a9bfa553fc Support multiple death animation variants. 2016-08-12 20:58:14 +01:00
Matthias Mailänder
fac58bd461 Replace pixel perfect offset with reference point definitions. 2016-08-12 21:54:51 +02:00
Matthias Mailänder
725a5d44eb Split SelectionDecorations control group rendering into
WithSpriteControlGroup and WithTextControlGroup
2016-08-12 21:53:16 +02:00
reaperrr
bd4f7db711 Fix UpgradeOnDamage trait description
The old desc is bogus copy-pasta.
2016-08-11 11:31:18 +02:00
Paul Chote
de85a76c90 Merge pull request #11586 from GraionDilach/selfheal-revamp
Expand SelfHealing.
2016-08-06 17:31:46 +01:00
reaperrr
1e43554559 Allow to customize which terrain types are considered water by Parachutable 2016-07-30 13:19:32 +02:00
reaperrr
3e217c2192 Allow to customize which terrain types are considered water by WithCrateBody 2016-07-30 13:19:32 +02:00
Oliver Brakmann
2eede9493e Merge pull request #11699 from Mailaender/unhardcode-capture-cursors
Unhardcoded the capture mouse cursor sequences
2016-07-27 21:36:33 +02:00
Matthias Mailänder
78848a67a0 Merge pull request #11721 from obrakmann/fix11660_smudge-removal-desync
Fix desync when removing smudges
2016-07-27 14:36:29 +02:00
Zimmermann Gyula
3ac5e0b455 Add a damagetype option to SelfHealing. 2016-07-27 14:14:35 +02:00
Zimmermann Gyula
4fa70cdfb9 Add a percentage option to SelfHealing. 2016-07-27 14:14:34 +02:00
Zimmermann Gyula
4812bc2997 Change DamagedByTerrain to apply the damage directly.
Instead of relying on a weapon.
2016-07-26 23:18:53 +02:00
Oliver Brakmann
30cf8c204b Fix desync when removing smudges
The cause of the crash was that the `RemoveSmudge` method only invokes `SharedRandom` in the else-branch of an if condition that is only taken when the `RenderPlayer` has fog visibility on the location (locations the `RenderPlayer` can see get removed from `dirty` in `TickRender`).

To add insult to injury, the `Type` field does not even need to get set since we are only using the `Sprite` field's `null` value as a marker to be picked up by the `TickRender` method. The `Type` field is only ever used twice in `AddSmudge`, in a branch of an if-condition that will not be taken when the `Sprite` field is null, which we set explicitly. The same holds true for the `Depth` field.
2016-07-26 21:46:18 +02:00
abcdefg30
4ed2c53b1a Fix the Desc of MapOptionsInfo 2016-07-24 15:34:21 +02:00
Matthias Mailänder
da509d6394 Unhardcode the capture cursors. 2016-07-23 23:50:02 +02:00
Oliver Brakmann
dab7276601 Make repairing buildings and units grant experience
Using the repair button and repair pad, not using engineers and mechanics.
2016-07-19 20:20:38 +02:00
Oliver Brakmann
1e86326cbc Make capturing grant player experience 2016-07-19 20:20:38 +02:00
Oliver Brakmann
c1729a3b70 Make DonateSupplies grant player experience 2016-07-19 20:20:38 +02:00
Matthias Mailänder
5b61206ac6 Merge pull request #11513 from GraionDilach/idamage
Remove passing the warheads from DamageWarhead to AttackInfo.
2016-07-16 14:26:43 +02:00
abcdefg30
549c00c6c1 Merge pull request #11653 from Mailaender/damagedbyterrain-div0
Fixed a division through zero in DamagedByTerrain.
2016-07-16 11:03:38 +02:00
Matthias Mailänder
fcd904a168 Avoid a division through zero. 2016-07-15 20:10:30 +02:00
abcdefg30
d5bac4ebe4 Merge pull request #11651 from obrakmann/fix_HealthInit_breaking_Actor.Create
Allow HealthInit to be used with Actor.Create in Lua scripts
2016-07-15 14:10:47 +02:00
Oliver Brakmann
e6659f805b Merge pull request #11641 from abcdefg30/particleDensity
Convert ParticleDensityFactor from a float to an int
2016-07-15 10:30:57 +02:00
Oliver Brakmann
417e9ca71f Add a single-argument constructor to HealthInit
...which is a requirement for an ActorInit to be usable with the Lua API's Actor.Create() method.
2016-07-14 19:45:03 +02:00
Paul Chote
ac6b2a8f62 Support custom fully-open sequences for gates. 2016-07-13 22:22:07 +01:00
Oliver Brakmann
8c8fa2d258 Merge pull request #11578 from abcdefg30/turretedDeath
Don't add duplicate facing entries when modifying the DeathActorInit in Turreted.cs
2016-07-13 19:09:08 +02:00
Oliver Brakmann
3539e3146e Merge pull request #11560 from abcdefg30/supportSpeech
Refine the support power speech notifications setup
2016-07-13 18:40:07 +02:00
PedroFerreiraRamos
958e35d61f Fix air unit resupply #5966 2016-07-12 20:17:45 -03:00
abcdefg30
3a8b2bda43 Convert ParticleDensityFactor from a float to an int 2016-07-12 22:19:50 +02: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
abcdefg30
6342b40bfd Merge pull request #11499 from Mailaender/damaged-by-terrain
Merged PoisonedByTiberium and DamagedWithoutFoundations into DamagedByTerrain
2016-07-10 22:22:29 +02:00
Matthias Mailänder
8df4e9e04c Merge PoisonedByTiberium and DamagedWithoutFoundations
into DamagedByTerrain.
2016-07-10 19:44:19 +02:00
Matthias Mailänder
e8aa46e0d7 Merge pull request #11474 from obrakmann/player-experience
Add foundation for player experience tracking
2016-07-10 16:08:14 +02:00
Matthias Mailänder
90439ac64c Merge pull request #11574 from obrakmann/fix_non-combatant-unitcratepickup
Prevent non-combatant players from receiving units from crate pickups
2016-07-10 15:51:32 +02:00
Emiel Suilen
c3e862b2ca Add a PlayerExperience trait 2016-07-10 15:30:17 +02:00
Oliver Brakmann
5157ac917f Cache PlayerResources in PlayerStatistics
and remove a couple of redundant fields.
2016-07-10 15:30:17 +02:00
Matthias Mailänder
da3aaf4318 Merge pull request #11620 from pchote/fly-on-unreserve
Order landed aircraft to take off if their reservation is cancelled.
2016-07-10 09:28:16 +02:00
Matthias Mailänder
c3de3a0a90 Merge pull request #11619 from pchote/fix-depot-sell
Fix service depot selling.
2016-07-09 21:17:06 +02:00
Paul Chote
b87020f93f Order landed aircraft to take off if their reservation is cancelled. 2016-07-09 12:08:48 +01:00
Paul Chote
b0c9d49d14 Fix INotifyRepair argument order. 2016-07-09 11:12:56 +01:00
Paul Chote
7325f0e733 Fix service depot animation breaking sell. 2016-07-09 11:11:31 +01:00
Zimmermann Gyula
ad0c38d352 Fix a wrong check in LeavesTrails. 2016-07-09 02:08:33 +02:00
Oliver Brakmann
b080417db3 Prevent non-combatant players from receiving units from crate pickups 2016-07-08 13:24:25 +02:00
Taryn Hill
7a0d12dd51 Implement ExitsDebugOverlay and ExitsDebugOverlayManager 2016-07-07 08:57:44 -05:00
Taryn Hill
59d97b8447 WithTextDecoration: Move exception to Info via IRulesetLoaded 2016-07-05 14:09:27 -05:00
evgeniysergeev
e83ffbec1c add RemoveSmudge function and trait 2016-07-05 12:03:04 +03:00