Unciv icon indicating copy to clipboard operation
Unciv copied to clipboard

Add Conditionals for comparing Stats and Resources

Open PLynx01 opened this issue 2 years ago • 0 comments

I've made 4 new conditional uniques for comparing Stats and Resources numbers.

  • The first one is true when stat or resource has an exact number.
  • The second one is true when two of these have equal amount.
  • The third and fourth are very similar, because they both compare stat and resource with each other, and return true when first or second is bigger.

The last three uniques support all 4 ways of comparison:

  1. Resource - Resource
  2. Stat - Stat
  3. Stat - Resource
  4. Resource - Stat

I believe these additions will give modders a range of possibilities as Resources can be used as custom variables

If you have some suggestions, please tell me in comments below. Constructive feedback welcome.

PLynx01 avatar Mar 04 '24 20:03 PLynx01