Commit Graph

495 Commits

Author SHA1 Message Date
Curtis Shmyr
cb4bd52fc0 Added more Lua functions 2014-08-15 19:51:02 -06:00
Oliver Brakmann
819eb64011 Add end game dialog 2014-08-08 13:35:49 +02:00
Oliver Brakmann
8cec848a0f Add a mission objectives GUI panel 2014-08-08 13:35:49 +02:00
Oliver Brakmann
cca6646927 Add mission objectives to Lua interface 2014-08-08 13:35:43 +02:00
Oliver Brakmann
6e3000ab0e Make Conquest- and StrategicVictoryConditions use objectives backend
Note: 3rd party KotH maps will need to be modified to work correctly
with this change.  Previously, StrategicVictoryConditions was a
supplement to ConquestVictoryConditions.  After this change, each works
by itself.  So KotH maps will need to remove the ConquestVictoryConditions
trait from the player definitions, or both victory conditions will have
to be satisfied to win the game.
2014-08-07 16:56:17 +02:00
Oliver Brakmann
a3bf3e7403 Add support for mission objectives
Objectives can be either primary or secondary objectives. Primary ones
influence the outcome of the game.  If all primary objectives are
completed the game is won, and lost when any of them fails.

Objectives can be added at any stage during the game, allowing to react
dynamically to game events.

The objectives backend only contains the information about the
objectives themselves. It does not check if objectives are completed or
failed.  Instead, the state of objectives must be manually marked. The
backend, however, does check whether the game is won or lost.
2014-08-07 16:56:17 +02:00
Paul Chote
1a4f476ffa Replace CloakCrateAction with upgrades. 2014-08-07 20:44:30 +12:00
Paul Chote
0ca5336072 Reimplement UnitUpgradeCrate using IUpgradable. 2014-08-07 20:43:27 +12:00
Paul Chote
bf5da145b0 Introduce IUpgradable and purchasable unit upgrades. 2014-08-07 20:40:47 +12:00
Chris Forbes
c482e97060 Merge pull request #6152 from Mailaender/money-crate
Added money crates to be spawned by destroyed supply trucks
2014-08-04 10:39:29 +12:00
Taryn Hill
b6fd757672 Merge pull request #6030 from UberWaffe/CustomWarheads
Custom Warheads refactor
2014-08-03 10:35:36 -05:00
UberWaffe
c972b39687 Custom Warheads refactor
Changes included:

Warhead code split out of weapon code and refactored.
Warhead functionality now split into several classes, each handling one effect/impact.

Additional custom warheads can now be defined and called via yaml.
Custom warheads inherit the abstract class Warhead,
which provides target check functions.

Custom warheads have to define their own impact functions,
and can also define their own replacement for check
functions.
2014-08-03 17:10:44 +02:00
Matthias Mailänder
98106e2ff7 ContainsCrate is redundant to LeavesHusk 2014-08-03 16:30:45 +02:00
Paul Chote
b5e4e0e074 Add support for voxels in actor previews. 2014-08-03 22:23:49 +12:00
Paul Chote
7fb106e54a Introduce actor previews for PBOG and the editor. 2014-08-03 22:23:47 +12:00
ScottNZ
692e3a9c88 Move Power out of Building and into its own trait
Conflicts:
	mods/ts/rules/structures.yaml
2014-08-03 18:53:51 +12:00
Matthias Mailänder
405d21d797 add Game.AddChatLine to the new Lua API 2014-07-27 07:34:24 +02:00
Paul Chote
0c607ffff2 Move legacy widgets into D2K project. 2014-07-26 18:20:10 +12:00
Paul Chote
a0e5554aaa Overhaul the RA sidebar UI. 2014-07-26 18:20:09 +12:00
Paul Chote
6d96d46081 Move ProductionQueueFromSelection into RA and generalize. 2014-07-26 18:20:09 +12:00
Paul Chote
17d601113e Move SupportPowersWidget into RA and generalize. 2014-07-26 18:20:08 +12:00
Paul Chote
ae9a3075a9 Add a logic class for faction-specific backgrounds. 2014-07-26 18:20:08 +12:00
Paul Chote
9e2b3ce0b8 Unify cheats -> debug and adjust plumbing for new RA UI. 2014-07-26 18:20:08 +12:00
Paul Chote
e7ae615ac9 Split the last TD UI logic into reuseable chunks. 2014-07-26 18:20:07 +12:00
Paul Chote
1e76baf070 Move TD production widgets into the RA project. 2014-07-26 18:20:07 +12:00
Paul Chote
c4bcf0af46 Introduce RangeCircleRenderable. 2014-07-25 21:14:39 +12:00
Taryn Hill
b4cecff74e ClonesProductionUnits:
string[] CloneableTypes	checks Cloneable.Types

Cloneable:
	string[] Types checked by ClonesProductionUnits.CloneableTypes

Added INotifyOtherProduction
	for notifying self when another actor
	produces a unit.
2014-07-24 19:08:08 -05:00
Matthias Mailänder
249be6d9a7 separate and document FlyAwayOnIdle 2014-07-23 07:09:07 +02:00
Matthias Mailänder
d830a0a7ae Merge pull request #6029 from pchote/gametomods
Move *Renderables and Render* out of Game.
2014-07-23 06:54:42 +02:00
Paul Chote
029da5116b Move VoxelRenderable into Mods.RA. 2014-07-22 16:43:39 +12:00
Paul Chote
4589e93180 Move TextRenderable into Mods.RA. 2014-07-22 16:43:39 +12:00
Paul Chote
1cb6026c38 Move ContrailRenderable into Mods.RA. 2014-07-22 16:43:39 +12:00
Paul Chote
6005262992 Move BeamRenderable into Mods.RA. 2014-07-22 16:43:39 +12:00
Paul Chote
51abbad5ff Move RenderSprites and RenderSimple into Mods.RA. 2014-07-22 16:43:39 +12:00
UberWaffe
94b1f53ebf Rebased. (+1 squashed commits)
Squashed commits:

[43010a0] Fixes. (+1 squashed commits)

Squashed commits:

[94ee90e] Fixes. (+1 squashed commits)

Squashed commits:

[ef827c7] Style cop updates. Updates to LevelUp, Cloak, and UnitUpgrade to allow multiple units within range, plus maximum extra unit limit. (+1 squashed commits)

Squashed commits:

[2103b01] Dupe crate action updates and fixes. (+2 squashed commit)

Squashed commit:

[0f4df4a] Added DuplicateUnitCrateAction.

[2787fa1] Clarity update. (+1 squashed commits)

Squashed commits:

[93ddc3b] Crate updates.
+Multiple units per crate allowed.
+Allow time delay on crate actions.
2014-07-20 21:37:40 +02:00
Matthias Mailänder
91a076728d generalize into SpawnActorPower
closes #5724
2014-07-07 15:27:54 +02:00
Paul Chote
59bea931a5 Use AirstrikePower for spy planes. 2014-07-07 17:40:51 +12:00
Matthias Mailänder
69209cd340 split WithActiveAnimation from SeedsResource
closes #5300
2014-07-06 14:58:29 +02:00
Matthias Mailänder
7783e988a7 unify music install and add a download option
closes #4759
2014-07-06 14:04:25 +02:00
Matthias Mailänder
14f71c55bf unify install from CD logic 2014-07-06 14:04:25 +02:00
Matthias Mailänder
394d635dae new trait WithMakeAnimation 2014-07-06 08:24:08 +02:00
Matthias Mailänder
07c75b5e27 move WithVoxelWalkerBody to Mods.TS 2014-07-05 12:12:56 +02:00
Matthias Mailänder
ff1be8daea merge ParachuteAttachment and Parachutable 2014-07-05 09:13:52 +02:00
Matthias Mailänder
2907273ef2 new trait Parachtuable that decides on the fate upon landing 2014-07-05 09:13:51 +02:00
Paul Chote
6250c9df12 Merge pull request #5696 from Mailaender/emit-cargo-on-sell
Finished EmitCargoOnSell
2014-07-05 12:30:29 +12:00
Matthias Mailänder
0feb5a7bdc check for building influence when growing resources
closes #5556
2014-07-04 09:22:14 +02:00
Matthias Mailänder
884fbc0ea9 add a new lint check for invalid map cordons 2014-07-03 10:56:59 +02:00
Matthias Mailänder
ea86aac089 replace EmitCargoOnSell with Cargo.EjectOnSell 2014-07-01 22:11:44 +02:00
Matthias Mailänder
ba1fa7cd81 new check for undefined actors 2014-06-28 09:50:50 +02:00
Paul Chote
6536f92b12 Allow custom prerequisites to be restricted by race. 2014-06-26 23:12:23 +12:00