OpenXcom Forum
Modding => OpenXcom Extended => OXCE Support => Topic started by: KingMob4313 on November 02, 2018, 07:08:15 pm
-
This is a monstrously stupid question.
but what does this mean exactly:
#each bonus can be written as: `s: x`, `s: [x]`, `s: [x, y]` or `s: [x, y, z]`.
#where each value represents coefficient of polynomial `x * s + y * s^2 + z * s^3`.
What does s, x, y, z all mean and how would you write in in the rul file?
-
items:
- type: STR_WEAPON_OR_AMMO_WITH_DAMAGE_BONUS
damageBonus:
firing: [1.0, 0.01, 0.0001]
This damage bonus will add 100% of the user's firing accuracy to the base power, along with 1% of firing accuracy squared and 0.01% of firing accuracy cubed. According to the variables, s here is firing accuracy, x, y, and z are 1.0, 0.01, and 0.0001, respectively. In other words, s is the unit stat you want the bonus to be based on, and x, y, and z are the polynomial coefficients.
-
eh, well, I guess if the variable (firing accuracy) was x and coeffiecients (0.1, etc) were a, b, c
and default values of 0 for the coefficients were mentioned,
and also insist on always using full list with explicit zeroes mentioning the old form being deprecated and for backwards-compatability only
it would be more clear