1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-15 06:57:45 +00:00
Commit graph

190 commits

Author SHA1 Message Date
Mordred
beeae1b5c8 Maintarget logic improved in AOE packet generation 2025-01-06 20:17:09 +01:00
Mordred
1eb202faa8 Always send AOE effects as AOE packet, regardless of targetcount. Also allow setting position of aoe effect 2025-01-06 15:35:17 +01:00
Alice Ogeda
f2805e951c myerge squashy; 2025-01-03 02:46:22 -03:00
Tahir
3727306613 add chara dirty flag, move bnpc position updates to tick
- add knockback
- use pos set in action rather than always using source actor
2024-06-25 17:41:14 +01:00
Tahir
b38afc0256 add left/right to nudge command
- fix Common::Util::getOffsettedPosition
- fix action timepoint getting stuck (todo: fix actions legit)
2024-06-25 03:14:33 +01:00
Tahir
2f4efec34d fix some timeline bugs, temporarily disable gambits 2024-06-23 01:30:07 +01:00
Rushi
0ac79362cd Change size() > 0 checks to !empty() 2024-06-21 12:33:31 +02:00
Rushi
d8ffb010a3 Change StatusEntry duration to unsigned int 2024-06-21 12:33:26 +02:00
Rushi
241ac491ef Avoid copying modifiers to applyStatusEffect 2024-06-21 12:33:18 +02:00
Mimi
7bfd9538c9
[3.x] WIP: Initial Action and StatusEffect implementation (#958)
* Check statuses to determine valid lut entry

* Add duration field to statuses

* Rename buildEffects to make more sense

* Add basic generic handler for applying statuseffects

* Add more modifiers

* Add basic modifier impl for Chara

* Apply/remove modifiers for statuseffects

* Add some example statuses to lut

* Fix windows build error

* Don't clear tick effect

* Add status entry for Maim

* Apply status effects properly for self when having a target

* Fix hasStatusEffect to prevent duplicates

* Basic dot/hot ticks implemented

* Update HP on tick effects

* Apply effect to correct target

* Add method to simplify applying statuses to self

* Add job actions for warrior

* Add some actions and statuses for war

* Add even more modifiers

* Add statuseffect cost type

* Add option to not send statusremove order

* Change delModifier assert to return early instead

* Add option for scripts to enable the generic/lut handler

* Add enums for common action values

* fix indentation

* Fix modifier name for Defiance

* Remove status tick logging

* Move modifiers to statuseffect

* Add ParryPercent modifier

* Remove wrath when Defiance ends

* Apply modifiers in applyStatus

* Remove unused method

* Persistence for cross-class skills

* Add flags to StatusEffects

* Some exd struct fixes

* Some aoe work

* Add flags to lut

* Add missing changeclass

* Add SET_STATUS_ME to ActionIntegrity

* Improve offensive action check

* Add flag to overloaded applyStatusEffectSelf

* indentation fix

* Some calculation work

* Null-check ActionResultBuilder

---------

Co-authored-by: Lucy <44952533+Skyliegirl33@users.noreply.github.com>
Co-authored-by: Mordred <30826167+SapphireMordred@users.noreply.github.com>
2024-06-21 12:27:01 +10:00
Rushi
43da39dee8 Fix building on clang 2024-06-19 18:28:32 +02:00
Pinapelz
90354e82f4 implement unlocking orchestrion roll 2024-01-10 20:35:02 -08:00
Mordred
fe9a2ef974 Cleanup cleanup cleanup 2023-03-16 21:56:57 +01:00
Mordred
33463f45a9 More cleanup of actions 2023-03-15 15:21:03 +01:00
Mordred
aafb77ecbb Use attack type for action hit effect, further simply action code. 2023-03-14 22:32:55 +01:00
collett
5fb62b75ec support 3.x crit damage and remove direct hit 2023-03-14 18:06:02 +09:00
Mordred
658d2fa7aa minor cleanup of actionResultBuilder 2023-03-13 23:26:50 +01:00
Mordred
f1cd218e85 Include Common::ActionResultFlag::EffectOnSource on source status effects 2023-03-13 11:44:09 +01:00
Mordred
09db0ee7d2 There is now an applyStatusEffectSelf for status effects which same source and target. 2023-03-13 11:21:42 +01:00
Mordred
0edff5ab85 Statuseffect fix #2 2023-03-12 21:06:37 +01:00
Mordred
31557f52f8 Fixe for target and statuseffect issues, cleanup of gambits 2023-03-12 20:46:27 +01:00
Mordred
5cc7b0c87b Converted autoattacks to the action system 2023-03-11 20:52:52 +01:00
Mordred
7c4a053bea further simplified the action builder. 2023-03-10 22:59:53 +01:00
Mordred
54ba2b529f Fixed another bug with self target actions. 2023-03-10 22:50:38 +01:00
Mordred
72f06fb072 Status effect rework for actionintegrity. 2023-03-10 22:34:12 +01:00
Mordred
5d353de158 Action logic rework #1
statuseffects and autoattack still on the todo list
2023-03-10 17:32:52 +01:00
Mordred
0def7896ec Refactoring of action logic, ongoing.
Fixing source of actorcontrols being always player for single target packets.
2023-03-09 21:54:30 +01:00
Mordred
859f2329bb Another big batch of refactoring for readability. 2023-03-08 09:20:08 +01:00
Mordred
ca002dadd1 Renamed the Util::Player namespace to Util::Packet. More cleanups and refactorings. 2023-03-07 10:25:55 +01:00
Mordred
f4ab4ab418 More cleanup of player packets. 2023-03-06 10:12:29 +01:00
Mordred
35f3ef8109 Moving player packet generation into a player util function 2023-03-05 23:27:43 +01:00
Mordred
fe471fb4f1 Fix for online status and minor cleanup 2023-03-02 07:38:14 +01:00
Mordred
ffdbed72ce More cleanup around actions 2023-02-28 22:30:54 +01:00
Mordred
0a9f5da1d3 Clarity through better naming of fields. 2023-02-28 10:31:59 +01:00
Mordred
0116272e69 Reducing direct calls to getSession 2023-02-27 08:58:08 +01:00
Lucy
fa1a5213d1 Drop inventory items for minion/mount 2023-02-25 19:59:53 +01:00
Mordred
e0ec74a6bc More cleanups. 2023-02-25 15:31:57 +01:00
Mordred
065c1817bd Missed a few state flags functions during renaming. 2023-02-20 16:41:04 +01:00
Mordred
6bf3ac0be8 Refactoring ongoing. 2023-02-20 15:25:57 +01:00
Mordred
188d80d2ec Alot more cleanups in various areas. 2023-02-20 11:24:02 +01:00
Mordred
d34d93a7dd Fixed an issue with scripts no longer having a function to warp to a different territory type. 2023-02-18 17:59:24 +01:00
Mordred
f91494fa7b sendToInRangeSet removed 2023-02-17 22:46:02 +01:00
Mordred
9b46b89c65 Changing various packet sending functions to clean up the project. 2023-02-17 15:34:51 +01:00
Mordred
85501effed Implemented a basic actionintegrity implementation, subject to be changed.
Fixed replay packet sending.
2023-02-16 08:25:03 +01:00
Alice Ogeda
d5022516f5 fix actionresult, hudparam, resting packet; comment action filter for sprint false selftarget; warp vfx on exit range; fix status duration; 2023-02-13 16:27:36 -03:00
Mordred
9d6eb7f676
Merge pull request #883 from T00fy/master
Reimplemented EventItem. Fixed bug with onDeath not triggering when b…
2023-02-11 23:34:06 +01:00
Alice Ogeda
83a08ea149 Merge branch 'master' of https://github.com/SapphireServer/Sapphire into teletubbies-vacuum-cleaner 2023-02-10 17:14:24 -03:00
Lucy
f56a0a38e8 Implement ItemManipulationAction
Used for actions with a delay time but no cast
2023-02-10 18:17:04 +01:00
Alice Ogeda
2b57b73471 first batch of moving packet/logic out of player to playermgr; 2023-02-10 12:11:11 -03:00
Toofy
6cc41758f4 Changing pointer var name 2023-02-10 15:05:14 +00:00