Follow-up Comment #11, bug #14515 (project freeciv):

> (This would be easier to express in the ruleset if the effects
> system could combine numbers in more ways than just addition,
> such as min() and max(). But that's probably a separate bug.)

Perhaps an additional field could be added to the effects definition. It
could define how the numbers should be combined. But this raises the problem
of the order of the effects, i.e


[effect_test1]
  name      = "test"
  operation = ADD
  value     = 16

[effect_test2]
  name      = "test"
  operation = MIN
  value     = 20

[effect_test3]
  name      = "test"
  operation = DIV
  value     = 2


depending on the order this could result in

min((0 + 16), 20) / 2 = 8
min(0, 20) / 2 + 16 = 26
min((0 / 2), 20) + 16 = 36
... (and some more combinations)





    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?14515>

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to