From 16eb1dd1b5c11ca30744ea63abaa73f0023803ba Mon Sep 17 00:00:00 2001 From: mardaravicius <45588145+mardaravicius@users.noreply.github.com> Date: Sun, 1 Dec 2024 14:02:51 +0100 Subject: [PATCH] update xs effect amount doc about attack/armor changing --- docs/general/xs/bugs/Effect Amount.md | 12 +++++++----- docs/general/xs/bugs/bugged/effect_amount2.xs | 12 +++++++----- docs/general/xs/bugs/index.md | 2 +- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/docs/general/xs/bugs/Effect Amount.md b/docs/general/xs/bugs/Effect Amount.md index eef5c75..8ae77cf 100644 --- a/docs/general/xs/bugs/Effect Amount.md +++ b/docs/general/xs/bugs/Effect Amount.md @@ -12,17 +12,19 @@ Reproduction Steps: void main() { const int cGenghisKhan = 731; const int cPierce = 3; - - // Both of these work correctly as expected + + // These do not do anything. xsEffectAmount(cSetAttribute, cGenghisKhan, cAttack, cPierce*65536 + 5); xsEffectAmount(cSetAttribute, cGenghisKhan, cArmor, cPierce*65536 + 5); - - // These however do not do anything. xsEffectAmount(cAddAttribute, cGenghisKhan, cAttack, cPierce*65536 + 5); xsEffectAmount(cMulAttribute, cGenghisKhan, cArmor, cPierce*65536 + 5); - // To make cAddAttribute and cMulAttribute work, we need to currently use the old format: + // To make cSetAttribute and cAddAttribute work, we need to currently use this format: + // xsEffectAmount(cSetAttribute, cGenghisKhan, cAttack, cPierce*256 + 5); + // xsEffectAmount(cSetAttribute, cGenghisKhan, cArmor, cPierce*256 + 5); // xsEffectAmount(cAddAttribute, cGenghisKhan, cAttack, cPierce*256 + 5); + + // cMulAttribute seems to do something in the correct format but not multiply: // xsEffectAmount(cMulAttribute, cGenghisKhan, cArmor, cPierce*256 + 5); } ``` diff --git a/docs/general/xs/bugs/bugged/effect_amount2.xs b/docs/general/xs/bugs/bugged/effect_amount2.xs index 72a5ecc..686bf3f 100644 --- a/docs/general/xs/bugs/bugged/effect_amount2.xs +++ b/docs/general/xs/bugs/bugged/effect_amount2.xs @@ -1,16 +1,18 @@ void main() { const int cGenghisKhan = 731; const int cPierce = 3; - - // Both of these work correctly as expected + + // These do not do anything. xsEffectAmount(cSetAttribute, cGenghisKhan, cAttack, cPierce*65536 + 5); xsEffectAmount(cSetAttribute, cGenghisKhan, cArmor, cPierce*65536 + 5); - - // These however do not do anything. xsEffectAmount(cAddAttribute, cGenghisKhan, cAttack, cPierce*65536 + 5); xsEffectAmount(cMulAttribute, cGenghisKhan, cArmor, cPierce*65536 + 5); - // To make cAddAttribute and cMulAttribute work, we need to currently use the old format: + // To make cSetAttribute and cAddAttribute work, we need to currently use this format: + // xsEffectAmount(cSetAttribute, cGenghisKhan, cAttack, cPierce*256 + 5); + // xsEffectAmount(cSetAttribute, cGenghisKhan, cArmor, cPierce*256 + 5); // xsEffectAmount(cAddAttribute, cGenghisKhan, cAttack, cPierce*256 + 5); + + // cMulAttribute seems to do something in the correct format but not multiply: // xsEffectAmount(cMulAttribute, cGenghisKhan, cArmor, cPierce*256 + 5); } \ No newline at end of file diff --git a/docs/general/xs/bugs/index.md b/docs/general/xs/bugs/index.md index 411575c..a3d3759 100644 --- a/docs/general/xs/bugs/index.md +++ b/docs/general/xs/bugs/index.md @@ -11,7 +11,7 @@ If you know of a bug that is not documented here, or if a bug listed here is act Game Version: `101.102.47822.0 (#113358) 14355041` -Last Updated: `05.06.2024` +Last Updated: `01.12.2024` Game Platform: Steam