-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from mardaravicius/update-xs-effect-amount-doc…
…-about-attack-armor-changing update xs effect amount doc about attack/armor changing
- Loading branch information
Showing
3 changed files
with
15 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters