Matthias Mailänder
bcda232a1c
Merge pull request #7231 from RoosterDragon/linq-checks
...
Checked LINQ queries and collections for inefficiencies.
2015-02-01 08:56:15 +01:00
Oliver Brakmann
22b1f4de59
Merge pull request #7331 from Phrohdoh/dune-armor-bonuses
...
TerrainModifiesDamage trait.
2015-01-30 17:30:43 +01:00
Matthias Mailänder
4899b555a9
Merge pull request #7191 from Mailaender/ts-superweapons
...
Added the Nod missile silo and the Ion Cannon to the Tiberian Sun mod
2015-01-29 21:48:14 +01:00
RoosterDragon
82bea961ba
Checked LINQ queries and collections for inefficiencies.
...
- Made Array.IndexOf available via extension method.
- Made ToHashSet extension method.
- Change collections queried often via Contains into sets.
- Avoid Count() extension if Count or Length property exist.
- Made Count() > 0 checks and variations calls to Any() instead.
- Don't call ToList/ToArray if there is no benefit to materializing the sequence.
- If the sequence does benefit from materialization, follow this general pattern:
- Collection queried often via Contains use ToHashSet to speed up lookups.
- Short lived variables use ToList. This is because ToArray requires an extra copy to output the final size.
- Collections persisted into fields or for a long time use ToArray to minimize memory overhead.
2015-01-29 19:20:11 +00:00
Oliver Brakmann
7ddc340d5b
Merge pull request #7314 from Unit158/Levelup-command
...
Added a levelup command
2015-01-28 20:58:17 +01:00
Oliver Brakmann
2e1ca40bb5
Merge pull request #7155 from cjshmyr/buildarea
...
Use ActorMap instead of BuildingInfluence for finding buildable area
2015-01-28 19:03:49 +01:00
Curtis Shmyr
30cf02c8e2
Use ActorMap instead of BuildingInfluence for finding buildable area
2015-01-26 20:22:21 -07:00
Taryn Hill
86f6d634c0
Add TerrainModifiesDamage trait.
...
^Infantry take 80% damage on Rough terrain in D2k.
2015-01-26 18:08:44 -06:00
Matthias Mailänder
24deec2a7b
fix CodeLineMustNotEndWithWhitespace
2015-01-25 18:41:29 +01:00
Matthias Mailänder
3489794713
replace PlayMusicOnMapLoad trait with Lua Media.PlayMusic method
2015-01-25 14:43:36 +01:00
Christopher Grant
66c33452e8
Added a levelup command
2015-01-24 14:56:33 -05:00
Matthias Mailänder
fc16990c05
unhardcode and self-document
2015-01-24 17:35:21 +01:00
Oliver Brakmann
2c71e954bf
Merge pull request #7170 from penev92/bleed_enemySightedNotification
...
Implement "Enemy unit sighted" notification
2015-01-22 21:58:58 +01:00
abcdefg30
2fd1576d15
Ignore buildlimits with AllTech cheat
2015-01-18 20:36:26 +01:00
penev92
52cc69fd1f
Move Crate, CrateSpawner and all CrateActions to Mods.Common
2015-01-18 16:40:55 +02:00
penev92
f1a0f6e2a5
Move Parachute, Parachutable and ParaDrop to Mods.Common
2015-01-18 16:15:14 +02:00
Matthias Mailänder
44f1c52e44
Merge pull request #7204 from Mailaender/ts-harvest-overlay
...
Added the Tiberian Sun harvest animation
2015-01-18 12:58:46 +01:00
Oliver Brakmann
c2dac459bb
Merge pull request #7334 from RoosterDragon/less-alloc
...
Cache or inline some delegates to avoid allocations.
2015-01-17 16:04:36 +01:00
Matthias Mailänder
c1c1960b44
Merge pull request #7337 from reaperrr/common29
...
Moved Lint, UtilityCommands and Scripting properties to Mods.Common
2015-01-17 14:53:48 +01:00
penev92
e2832bb3d7
Implement EnemyWatcher and AnnounceOnSeen traits
2015-01-17 14:41:22 +02:00
Matthias Mailänder
e694692b97
add the Tiberian Sun harvest animation
2015-01-17 11:36:41 +01:00
Oliver Brakmann
e58d4ae87e
Merge pull request #7257 from Mailaender/d2k-guarding-voice
...
Added the Dune 2000 Guarding voice
2015-01-15 23:26:57 +01:00
reaperrr
e82b2ce8dd
Moves BaseAttackNotifier to Mods.Common
2015-01-15 22:59:43 +01:00
Oliver Brakmann
c092c0231f
Merge pull request #7316 from reaperrr/move-stuff28
...
Moved Upgrades, SupportPowers and some misc features to Mods.Common
2015-01-15 20:57:40 +01:00
abcdefg30
15c07d94ac
Add repairing and unit repaired sounds to fix
2015-01-15 20:16:24 +01:00
reaperrr
e8fbfc366a
Moves some misc traits/activities to Mods.Common, moves some RA traits into the Traits folder
2015-01-15 13:18:12 +01:00
reaperrr
be9d37f30e
Moves SupportPowers and related Widgets to Mods.Common
2015-01-15 13:18:11 +01:00
reaperrr
f897a9ff01
Moves Upgrades and Invulnerable trait to Mods.Common
2015-01-15 00:07:27 +01:00
RoosterDragon
930d9cbea3
Cache or inline some delegates to avoid repeated allocations.
2015-01-14 22:57:41 +00:00
penev92
e6f1c6b460
Enhance sandworm targeting logic by having actors produce noise
2015-01-14 21:26:55 +02:00
penev92
e42cf58cb1
Add IgnoresVisibility field to AttackBase
2015-01-14 21:26:54 +02:00
penev92
ea9ebaa08d
Add IgnoresCloak trait
2015-01-14 21:26:53 +02:00
Oliver Brakmann
75a9848468
Merge pull request #7276 from penev92/bleed_fixAttack
...
Minor targeting cleanup
2015-01-12 18:48:18 +01:00
abcdefg30
b7d8b2c6b3
Don't remove power while the dev hack is enabled
2015-01-11 21:37:32 +01:00
reaperrr
c431545a44
Wrap up Render traits move
2015-01-11 03:04:42 +01:00
reaperrr
0e1773ac5d
Move Production to Mods.Common
2015-01-11 03:04:39 +01:00
Matthias Mailänder
a95abd7b38
setup the Guarding voice
2015-01-10 22:34:57 +01:00
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
Oliver Brakmann
c779259462
Merge pull request #7282 from penev92/bleed_moveFiles
...
Move more traits to Mods.Common
2015-01-08 17:29:19 +01:00
reaperrr
c619c06999
Merge pull request #7292 from RoosterDragon/upgradeoverlay-modifyrender
...
Adjust UpgradeOverlay.ModifyRender to be more efficient.
2015-01-08 08:48:55 +01:00
Matthias Mailänder
89b2f4d5d3
Merge pull request #7217 from Mailaender/chrome-init-cleanup
...
Cleaned up the ingame widget initialization
2015-01-08 07:40:36 +01:00
RoosterDragon
df6956867a
Adjust UpgradeOverlay.ModifyRender to be more efficient.
...
When IsTraitDisabled is set, ModifyRender doesn't actually alter the sequence, so we can just return it directly and avoid adding another layer of enumerable. If it is unset, then the modifying enumerable has one less condition to check inside the loop.
2015-01-08 00:52:03 +00:00
penev92
37cdcaf354
Move everything Capture-related + Transform activity to Mods.Common
2015-01-08 01:49:15 +02:00
penev92
18ac3953cc
Move everything ExternalCapture-related to Mods.Common
2015-01-08 01:49:14 +02:00
penev92
8504c233d9
Move everything Repair-related to Mods.Common
2015-01-08 01:49:14 +02:00
penev92
bcd5160604
Move everything Bridge-related to Mods.Common
2015-01-08 01:47:20 +02:00
RoosterDragon
7cfece6dc0
Introduce a new type for representing map coordinates.
...
To resolve the ambiguity introduced when the introduction of isometric maps meant that cell and map coordinates were no longer equivalent, a new type has been introduced so they can each be represented separately.
2015-01-07 17:30:34 +00:00
RoosterDragon
a6cda967c2
Formatted all files.
...
Automatically formatted all files via VS. This generally corrects indentation, removes trailing whitespace and corrects misplaced tabs or spaces. Manually tweaked a few files where required.
2015-01-06 21:28:50 +00:00
penev92
1c3dc388ea
Remove redundant (and possibly risky) AttackFollow.CanAttack()
2015-01-06 22:07:41 +02:00
penev92
17dfda4c9d
Some fixes to Cloak.IsVisible()
2015-01-06 22:07:33 +02:00