Commit Graph

3087 Commits

Author SHA1 Message Date
reaperrr
2e9a4b78a3 Refactor RenderEditorOnly into RenderSpritesEditorOnly + WithSpriteBody 2015-07-25 10:28:07 +02:00
reaperrr
74b948342e Fix WithSpriteBody PlayCustomAnimationRepeating
Lacked damage stage awareness.
2015-07-25 10:28:05 +02:00
Pavel Penev
ded5a2b16a Merge pull request #8742 from abcdefg30/withpalettedeath
Support multiple WithDeathAnimation traits
2015-07-25 03:10:43 +03:00
penev92
7c1ef2231d Rename RaceInit to FactionInit 2015-07-25 00:39:31 +03:00
penev92
b34810c1d3 Rename AddRaceSuffixLogic to AddFactionSuffixLogic 2015-07-25 00:39:29 +03:00
penev92
9a36bf6bcd Rename CountryTooltipLogic to FactionTooltipLogic 2015-07-25 00:20:59 +03:00
penev92
dc30e5a46d Rename LobbyCountry to LobbyFaction 2015-07-25 00:20:58 +03:00
RoosterDragon
6b9dd9670a Avoid multiple AIs all issuing orders in exactly the same tick.
Randomize the initial tick used for each AI so they don't cause lag but all flooding the same tick with orders, but instead (try) and use a different tick for each AI. Order processing is expensive due to the need to sync world state, so it is best to spread out the performance cost of issuing these orders over different ticks.
2015-07-24 21:29:11 +01:00
deniz1a
f5b4befc75 Resets chat text field in lobby when Esc is pressed. 2015-07-24 23:21:37 +03:00
deniz1a
7337afcfeb Improves player name text field in game lobby.
Esc key resets text field to unmodified value and yields focus.
2015-07-24 23:13:17 +03:00
deniz1a
a51cc27fb5 Improves frame limit and player name text fields in settings menu.
Esc key resets text field to unedited value and yields focus.
2015-07-24 23:09:16 +03:00
deniz1a
4fcf73921f Improves filter text field in asset browser.
Text field takes keyboard focus by default.
Esc key resets filter or closes window if text field is empty.
2015-07-24 23:09:15 +03:00
deniz1a
d8c996f74a Fixes spelling in comment. 2015-07-24 23:09:15 +03:00
Paul Chote
34ffb3772f Merge pull request #8728 from reaperrr/wgb
Replaced RenderGunboat with WithGunboatBody
2015-07-24 20:54:55 +01:00
Oliver Brakmann
1e7da8514a Merge pull request #8735 from reaperrr/safe-pf-changes
Minor pathfinder-related changes (preparation for mobile refactor)
2015-07-22 14:42:52 +02:00
Oliver Brakmann
5a1b6bb644 Merge pull request #8622 from reaperrr/hv-refactor2
Refactored harvester resource search
2015-07-22 14:26:31 +02:00
reaperrr
711ec0c600 Minor pathfinder changes 2015-07-22 06:36:00 +02:00
reaperrr
61c0b5d59b Make refinery unblock cell customisable 2015-07-22 02:31:29 +02:00
reaperrr
62e05cf618 Fix for potential infinite loop freeze 2015-07-22 02:31:28 +02:00
David Jiménez
787609d51e Improved the performance and intelligence of resource harvesting by
refactoring the Harvesters' pathfinding. Now they in first place assess
which is the closest resource inside their search area and then a path is
calculated

Changed the way harvesters find resources by always trying to find the
closest resource to their refinery.

Changed the strategy of finding to find resources in Annulus.
2015-07-22 02:31:26 +02:00
reaperrr
bd73783cef Merge pull request #8685 from Mailaender/lint-projectile-sprites
Added projectile sprite testing to the CheckYaml lint rules
2015-07-21 01:56:58 +02:00
Matthias Mailänder
a0dc38c252 Merge pull request #8752 from obrakmann/optional-target-lines
Added option to turn off rendering of target lines in the settings
2015-07-20 22:05:05 +02:00
Matthias Mailänder
c6c6a9ff89 Merge pull request #8754 from atlimit8/00To0
Modify upgrade rules to match #8658 for rules older than 2015-07-11
2015-07-20 21:58:16 +02:00
Matthias Mailänder
0296d4e6c7 Merge pull request #8720 from abcdefg30/parashadow
Use the correct ShadowPalette for d2k paradrops
2015-07-20 21:56:50 +02:00
atlimit8
96cafccb8d Fix #8751 - IndexOutOfRangeException when UpgradeMultiplierTrait is pre-enabled 2015-07-20 02:51:45 -05:00
atlimit8
1f3ba22a55 Modify upgrade rules to match #8658 for rules older than 2015-07-11 2015-07-19 19:45:11 -05:00
figrita
ab3ab6f230 Added option to turn off rendering of target lines in the settings 2015-07-20 00:05:29 +02:00
Oliver Brakmann
68ac49b172 Merge pull request #8672 from pchote/more-terrainlayers
Convert remaining terrain layers to use TerrainSpriteLayer
2015-07-19 23:01:44 +02:00
Matthias Mailänder
1f69a0f6ed make projectile sprite sequences lint testable 2015-07-19 19:24:18 +02:00
Matthias Mailänder
d1db675af5 fix the linter not printing any helpful stacktraces (doh!) 2015-07-19 19:24:18 +02:00
Matthias Mailänder
c8c0cc52b6 add missing sequence references and add spaces for readability 2015-07-19 19:24:18 +02:00
abcdefg30
1518dc9145 Support multiple WithDeathAnimation traits 2015-07-19 11:30:13 +02:00
abcdefg30
ef6da3d0b3 Replace the default value of ShadowPalette with "shadow". 2015-07-18 21:22:38 +02:00
reaperrr
abec89fa26 Replaced RenderGunboat with WithGunboatBody
Based on WithSpriteBody.
2015-07-18 18:21:10 +02:00
Matthias Mailänder
860bfdadc4 extract server browser colors to configurable yaml 2015-07-18 17:22:39 +02:00
Paul Chote
bea021a069 Merge pull request #8729 from RoosterDragon/alloc-reductions
Reduce allocations
2015-07-18 12:28:07 +01:00
Paul Chote
ce4bdced47 Use a TerrainSpriteLayer for smudges. 2015-07-18 12:14:23 +01:00
Paul Chote
fe41ee0346 Clean up SmudgeLayer init. 2015-07-18 12:14:23 +01:00
Paul Chote
1f0f8c953b Use TerrainSpriteLayers for editor resources. 2015-07-18 12:14:13 +01:00
atlimit8
ef955c4b5a Fix quick ReloadTimeMultiplier => ReloadDelayMultiplier rename 2015-07-17 22:45:13 -05:00
Taryn Hill
847ce0d3a7 Add some descriptions to BulletInfo. Unhardcode a sequence and a palette in Bullet. 2015-07-16 19:19:28 -05:00
Taryn Hill
b8973cd5e7 Add some newlines to BulletInfo for readability. 2015-07-16 19:10:43 -05:00
RoosterDragon
ccad451060 Add WorldRenderer.ScreenVectorComponents.
This allows the components to be returned via out parameters, avoiding the need to allocate an array for most callers.
2015-07-15 21:24:01 +01:00
RoosterDragon
3a0eb5554e Provide HasStance extension method for Stance enum, to avoid overhead of HasFlag method. 2015-07-15 20:40:38 +01:00
RoosterDragon
7dc654a5ad Cache Orders in Passenger to avoid several repeated allocations when orders must be determined. 2015-07-15 20:40:35 +01:00
RoosterDragon
218712f5d3 Avoid allocating a compiler generated enumerator in WithDecoration.Render. 2015-07-15 20:40:35 +01:00
Oliver Brakmann
1d9c6251c0 Merge pull request #8658 from matija-hustic/higher_level_timed_upgrades
Higher level timed upgrades
2015-07-15 20:51:51 +02:00
Oliver Brakmann
2f82c2f9dc Merge pull request #8713 from deniz1a/server-filter
Fixes Empty filter in server browser.
2015-07-15 18:15:18 +02:00
penev92
479eb307d6 Remove unused parameter from Player's constructor 2015-07-15 04:58:50 +03:00
penev92
b8aa92c4be Rename Player.DisplayCountry to Player.DisplayFaction 2015-07-15 04:10:13 +03:00