Commit graph

67 commits

Author SHA1 Message Date
sruon
05c20a592f Migrate DAMAGE_TYPE enum to YAML 2026-06-18 18:17:36 -06:00
sruon
b51a58c147 Migrate addStatusEffect 2026-02-20 18:42:33 -07:00
Xaver-DaRed
cd80aeb449 Move damage adjustment function location (out of spell specific file) 2026-01-21 19:24:16 +01:00
Xaver-DaRed
9301e8bffd Add logic to status effect nullification function for tiering 2026-01-02 00:43:51 +01:00
WinterSolstice8
35308e2f28 [lua] [sql] Idd Excalibur procs, fix add effects not dealing damage 2025-12-30 21:28:58 -07:00
WinterSolstice8
38aa121038 [lua] Use add effect element first if supplied over status table 2025-12-19 21:56:15 -07:00
Xaver-DaRed
21dbd71691 Separate absorption and nullification calculations 2025-11-19 03:37:11 +01:00
loginosXI
7ec307e266 Add undead conditioning to drains
Adds conditioning to check whether a defending target is undead and returns 0, 0, 0 if true for any of the three drain additional effects.
2025-11-06 02:26:27 -05:00
Critical
c166ed5a29 [lua, sql] Adds functionality to sky god throwing items 2025-10-04 21:13:06 -06:00
MowFord
1c565e60a7
Small tweaks to NM_SPECIFIC ae type to be reusable
Make Dark Ixion claim mechanic work via Stygian Ash landing a hit
2025-10-01 13:49:53 -05:00
Xaver-DaRed
6452955571
Merge pull request #8142 from CriticalXI/sky_nm_audit
[lua, sql] Ve'Lugannon NM Audit
2025-09-23 18:02:42 +02:00
Critical
f962a485f9 [lua, sql] Ve'Lugannon NM Audit 2025-09-21 22:05:05 -06:00
Xaver-DaRed
b568e08f28 Modernize "additional effect" status effect aplication 2025-09-21 03:17:20 +02:00
Xaver-DaRed
92c4d350dc Remove unneeded requires 2025-09-19 13:43:05 +02:00
Xaver-DaRed
771dc1020b [magic.lua] Retire "adjustForTarget" function usage 2024-10-01 14:20:42 +02:00
WinterSolstice8
d806812fb0 [lua] Refactor Additional Effects to resolve cyclomatic complexity
Also fix some lua errors along the way that makes more things work
2024-08-23 19:08:06 -06:00
Xaver-DaRed
0a1a278e93 Miscelaneous lua fixes
Undefined enums or wrong enums names, duplicates, etc
2024-08-06 13:48:11 +02:00
TeoTwawki
5d269f83c2 Move addEffect lvCorrect/Stat handling to modifier based for flexibility
...Instead of assuming all ranged attacks will be the same.

Additionally:
- Moved up the lv correction call to before we check for proc
- Changed a small number of the sql comments to use the enum for readability. More to come later.
- Add some additional notation commenting
2024-02-19 14:44:48 -05:00
TeoTwawki
c6d4434af7 Move treat staff from additional effect to listeners.
TODO: confirm and possibly add listeners for missed attack and ws hit.
2023-12-08 20:40:10 -05:00
TeoTwawki
0159d70e03 correction to treat staff "additional effect" handling
- Active only during Harvest Festival events.
- Active in all areas.
- This effect is triggered as an Additional Effect when attacking monsters; when the effect activates, you will be Warped to your Home Point.
- This Additional Effect can trigger on missed attacks and Weapon Skills.
- There is no animation present when this effect activates, you will simply disappear and reappear at your Home Point.

It's technically a latent but functions as an add effect.

No other item in the game teleports the user on attacking an enemy, but if one were added it would be difficult to have both of them done in the additional effect system.

Potentially better handled as a listener?
2023-12-08 18:23:39 -05:00
TeoTwawki
f06e20e07d Adjust warp timings.
Retail takes just short of 3 seconds to animate this before warping you. It's closer to 2800ms but the code expects the answer to be in full seconds, so I am using 3 (3000ms).

Resolves #4769
2023-11-24 20:49:42 -05:00
claywar
35d44a4071
[chore] Standardize comment header lines to 35 character length 2023-09-07 08:18:40 -04:00
claywar
aa87e30e4d
[chore] Replace double-quote strings with single-quotes 2023-08-28 21:02:36 -04:00
Xaver-DaRed
2dce1333ea Move elements to Enum folder 2023-08-22 12:38:42 +02:00
TeoTwawki
f39bb922d5 Removed extraneous dashed lines from global ae script 2023-07-29 15:14:02 -04:00
TeoTwawki
e64abc27d2 Variable for that math.random() call.. we don't want to roll dice 3x
Re-rolling means a new chance to fail the check.

This will be refactored out soon, but may as well fix the proc rate here now.
2023-07-29 14:53:32 -04:00
TeoTwawki
e6334049ed Remove manual deduction of HP from drain effects
A prior change causes the resistance calculations to deal the damage immediately where this did not happen before, meaning when we hit the defender with the hp removal, it'd take the damage twice.

There is likely now also an issue with non-hp drains also dealing damage, but that will be handled in a minor refactor already in progress.
2023-07-29 14:45:54 -04:00
TeoTwawki
eb27c0fb49 Shift additional effect proc types 1 forward
.. to account for one I missed, actual implementation of the missing procType coming soon
2023-07-29 14:39:00 -04:00
claywar
5e3211a2b0
[chore] Remove all requires for scripts/globals/msg
Fix lines from search and replace


Fix last line length
2023-07-15 10:41:03 -04:00
claywar
478d95fd11
[chore] Remove status global requires
Part one of the removal, to be continued

Fix comment alignment
2023-06-01 18:33:34 -04:00
TeoTwawki
6f623889b3
Merge pull request #3547 from TeoTwawki/base
minor correction in scripts/globals/additional_effects.lua
2023-01-29 20:23:36 -05:00
TeoTwawki
0b8fa49e32 minor correction in scripts/globals/additional_effects.lua 2023-01-29 19:46:10 -05:00
austinclprojects
b2300bff80 Prevent additional effect if player synced below item level. 2023-01-29 02:14:16 -05:00
claywar
d0ea013126
[chore] Add newline after end at same indent level (2) 2022-11-22 14:42:58 -05:00
claywar
e857df9b0f
[chore] Use multiple lines for long conditions (1) 2022-11-13 10:54:35 -05:00
claywar
7ebc2e0f56
[chore] Add required padding to division operators 2022-10-23 14:13:26 -04:00
claywar
2e936f9e35
[chore] Remove semicolons at the end of lua script lines 2022-10-21 16:38:48 -04:00
claywar
5d490f3e15
[chore] Update lua scripts for required space after comma if not followed by newline 2022-10-21 15:55:16 -04:00
Xaver-DaRed
61007f8a72 Add a minimum value to math.random calls.
Also, styling
2022-10-21 13:42:10 +02:00
Zach Toogood
b3d9ebf489 [ci] Add exceptions to luacheck complexity checks
Using `-- luacheck: ignore 561` we can temporarily ignore luacheck's check for cyclomatic complexity. In order to make the CI sanity checks required for a PR to pass, these are the last issues we need to fix/skip.

A couple of tweaks to lua.sh's error reporting.
2022-10-06 14:22:17 +03:00
claywar
d552b9d333
[lua] Format tables from CI - 4 2022-09-17 14:07:38 -04:00
claywar
c2ded4800c
[ci cleanup] Local var format for GM Commands and Globals through J
Fix errors from cleanup
2022-05-29 07:55:23 -04:00
TeoTwawki
9452060c1b Additional Effects: safety check for statuses that do not remove anything and do not have a tick value (stun)
I broke the safety of this with my last minute split off of debuffs from damage into 2 types.
2021-11-14 23:01:41 -05:00
TeoTwawki
b1ab36fd31 fix 2 msgID calls for selfbuff procs (they weren't use dyet) 2021-09-17 10:04:04 -04:00
TeoTwawki
9d13035c79 Fix a dmg check that I derped on, split "normal" type into DAMAGE and DEBUFF before we get to much farther.. No item in retail does both and we can add another "type" if one ever does..
Its also going to be easy for servers to add custom stuff so it doesn't need to exist the way I had it. Was honestly kinda dumb of me.
2021-09-17 09:36:56 -04:00
TeoTwawki
1dbe7738ed target -> defender 2021-09-17 01:12:12 -04:00
TeoTwawki
16a51376a4 fix add effects again (tested! working!) 2021-09-16 22:18:13 -04:00
TeoTwawki
7407468132 fix build and hopefully fix add effects again (untested)
Also moved functions into a table and removed soem strange code inside weaponskill section of charentity - add effects do NOT proc on weaponskill hits. See https://www.bg-wiki.com/ffxi/Additional_Effect
2021-09-13 02:13:53 -04:00
TeoTwawki
fe5435ffea A few more corrections, plus actually using proper messages.
Unsure why in previous tests the message was saying the monster recovered instead of teh player, but its working correctly now so I'm not going to question it further!
2020-07-27 07:47:53 -04:00
TeoTwawki
097659cc22 Verified msgID 166 works like ibm2431 told me,
and adjusted its entry in msg.lua while using it in the additional effect global.
Adjusted deathres checks to be clearer while adding them to additional effect death proc.
2020-07-26 16:31:43 -04:00