CWolfs / MissionControl

A HBS BattleTech mod that provides a framework for runtime modifications of the contracts and encounters.
GNU General Public License v3.0
21 stars 13 forks source link

Contract Builder: ObjectInvolved Conditional #623

Closed CWolfs closed 8 months ago

CWolfs commented 8 months ago

Add support for the vanilla ObjectInvolvedConditional conditional.

This conditional takes two properties:

This conditional is used for generic checks on Messages that extend from EncounterObjectMessage. This is a lot of them (but not all).

The GUID property can be left null/empty, and if so, and then it will not be considered for the conditional check.

The Tag property can be empty and, if so, it will not be considered for the conditional check.

Note: I currently don't have a way to filter messages based on supertype 'EncounterObjectMessage' - only the final subtype. This refinement will be left for a future update.

CWolfs commented 8 months ago

This has some cross over with the EvaluateReflectedValue conditional, however, EvaluateReflectedValue is more flexible for checking any property on a Message whilst ObjectInvolvedConditional can check tags on the acting/affected Encounter Objects.

CWolfs commented 8 months ago

In develop.