Paul Chote
dbf6937062
Trim empty space around edges of Shp(TD) frames.
...
This significantly cuts down the amount of texture
space allocated in VRAM.
2018-05-20 14:12:11 +02:00
teinarss
dcc11c7a41
Added HpPerStep to Repairable for enable repair speed to be changed per unit.
2018-05-14 19:56:35 +02:00
Paul Chote
82e2595beb
Enable comment and whitespace parsing where it is useful.
2018-05-12 16:42:54 +02:00
Michael Silber
b199f45f04
Account for custom terrain layers in GrantConditionOnTerrain.
2018-05-10 20:57:01 +02:00
Paul Chote
579cc090a7
Suppress 0-cash ticks on CashTricker and GivesCashOnCapture.
2018-05-07 19:47:41 +02:00
Paul Chote
0eeb38a310
Show negative bounty cash ticks.
2018-05-07 19:47:41 +02:00
Paul Chote
c65d6d1484
Suppress negative cash crate action if the collector has no cash.
2018-05-07 19:47:41 +02:00
GSonderling
bf4dbd9b80
Added checks to make sure cash can't be < 0.
2018-05-07 19:47:41 +02:00
Paul Chote
b8fd4abc4a
Fix NRE in Guard when the target actor is dead.
2018-05-07 19:41:13 +02:00
reaperrr
ff8f147955
Some Mobile and Harvester clean-ups
...
Made Harvester interface implementations explicit.
Made Mobile internal VisualMove activity private.
2018-05-07 19:40:07 +02:00
reaperrr
545ca5da61
Made some interface implementations in Mobile explicit
2018-05-07 19:40:07 +02:00
reaperrr
98289d8573
Reorganized Mobile.cs to be more readable and structured
...
Implicit interface members, explicit interface members, local method etc. were happily scattered all over the place.
We can't explicitly implement most IMove/IPositionable interface members without some large rewrite,
so we should at least organize the file in a way that makes it less of a pain to tell which parts belong to which interface.
2018-05-07 19:40:07 +02:00
reaperrr
030902f691
Style fixes to some code comments in Mobile
2018-05-07 19:40:07 +02:00
Mustafa Alperen Seki
6c5c4a129f
Add CargoCondition(s) to Passenger
2018-05-06 20:09:39 +01:00
Paul Chote
3febae1644
Fix exception in DefaultSpriteSequence.GetSprite.
2018-05-06 17:32:17 +02:00
abcdefg30
7ae6326f2a
Fix Repairable not accounting for multiple ICallForTransport traits
2018-05-06 16:31:21 +01:00
abcdefg30
c6fee041b1
Add an update rule adding ShakeOnDeath to bridges
2018-05-06 04:51:03 +02:00
abcdefg30
917fd2103f
Use ShakeOnDeath instead of the hardcoded shaking for bridges
2018-05-06 04:51:03 +02:00
abcdefg30
b89e6211b2
Add an update rules for the ShakeOnDeath fix
2018-05-06 04:51:03 +02:00
abcdefg30
e7b060c1be
Fix ShakeOnDeath using intensity as duration
2018-05-06 04:51:03 +02:00
abcdefg30
6b10895c50
Use the new functions in already existing rules
2018-05-05 00:25:29 +02:00
abcdefg30
9a8e50e82f
Add a RemoveNode(MiniYamlNode) method to UpdateUtils
2018-05-05 00:25:29 +02:00
abcdefg30
ae9371f627
Add a ReplaceValue method to UpdateUtils
2018-05-05 00:25:29 +02:00
abcdefg30
399692341d
Add a new AddNode(MiniYamlNode) overload to UpdateUtils
2018-05-05 00:25:29 +02:00
Paul Chote
59c2a9e4da
Add a Type (= General, Filename, Integer) to TextFieldWidget.
2018-05-05 00:15:06 +02:00
reaperrr
3c34330925
Skip check for ITemporaryBlocker entirely if rules don't contain any temporary blockers
...
This benefits all mods without temporary blockers like gates or energy walls.
2018-05-04 19:40:18 +02:00
reaperrr
2a4299906d
Add missing update rules to bleed update path
...
I forgot to add these in their respective PR.
2018-05-04 19:20:39 +02:00
reaperrr
d6e0598bd0
Fix Locomotor lint check
...
It was missing from the project file (oops...) and missing a check for duplicate Locomotor names.
2018-05-04 19:20:39 +02:00
reaperrr
43478e9e72
Group lint rules together in Mods.Common csproj
...
Makes it easier to manually add/remov/disable individual lint rules.
2018-05-04 19:20:39 +02:00
reaperrr
5aefff421c
Locomotor update rule
2018-05-03 10:49:21 +02:00
reaperrr
e7fb32b09c
Replace DomainIndex passability hack with Locomotor boolean
2018-05-03 10:49:21 +02:00
reaperrr
5364515004
Don't pass movement class via IsPassable directly
...
Let IsPassable get that info from the locomotor instead.
2018-05-03 10:49:21 +02:00
reaperrr
a52e83ca49
Add Locomotor lint check
2018-05-03 10:49:21 +02:00
reaperrr
81343926b6
Split Locomotor trait from Mobile
...
Add GrantConditionOn*Layer traits
This allows to
- drop some booleans from Locomotor
- drop a good part of the subterranean- and jumpjet-specific code/hacks from Mobile
- grant more than 1 condition per layer type (via multiple traits)
- easily add more traits of this kind for other layers
2018-05-03 10:49:21 +02:00
Paul Chote
bf4b91741a
Ignore unused frames when loading Sequences into Sheets.
2018-05-02 09:59:03 +02:00
Paul Chote
d9fd0f272c
Add support on-demand sprite frame loading.
...
Passing the getUsedFrames argument will cause frames to be buffered
locally (and not added to the SheetBuilder) until they are explicitly
requested. This allows unused frames in sprite files to be skipped
instead of wasting space in GPU memory.
2018-05-02 09:59:03 +02:00
Paul Chote
94dd83bc13
Fix the frame mapping used to select sprites for the SpriteBounds.
2018-05-02 09:59:03 +02:00
Paul Chote
efc744dec3
Improve consistency between the update rule code and descriptions.
2018-05-02 09:25:39 +02:00
Paul Chote
8c2f25e249
Remove explicit line numbers from update rule reports.
...
Additions/removals by other rules in the set will almost certainly
invalidate these. Reporting the block and file is the best we can
reasonably do.
2018-05-02 09:25:39 +02:00
Paul Chote
677d004cfa
List ignored map includes only once.
2018-05-01 00:46:57 +02:00
Paul Chote
691c432b72
Ignore yaml files imported from other mods.
2018-05-01 00:46:57 +02:00
Paul Chote
91295f9c68
Add IReadOnlyFileSystem.IsExternalModFile.
2018-05-01 00:46:57 +02:00
Paul Chote
f0e190825a
Fix map updater breaking unicode characters.
2018-04-30 02:37:53 +02:00
Paul Chote
952f41b4e4
Add --dump-sequence-sheets Utility command.
...
This can be used to debug and optimize the texture
data that is uploaded to VRAM.
2018-04-30 02:05:43 +02:00
reaperrr
83f100618b
Make INotifyAppliedDamage require explicit implementation
2018-04-29 11:59:49 +01:00
reaperrr
3a82b13093
Make INotifyKilled require explicit implementation
2018-04-29 11:59:49 +01:00
reaperrr
7ca9aa5e0b
Make INotifyDamage require explicit implementation
2018-04-29 11:59:49 +01:00
reaperrr
ccd070afd6
Make IRenderModifier require explicit implementation
2018-04-29 11:59:49 +01:00
reaperrr
cc4c5a5492
Make IVoiced require explicit implementation
2018-04-29 11:59:49 +01:00
Paul Chote
da29250711
Move PlayerResources to Mods.Common.
2018-04-28 20:42:10 +02:00