Commit Graph

137 Commits

Author SHA1 Message Date
ipdnaeip 0cb2165ddf Added methods for retrieving entities within a cylinder, replaced radius-based methods, implemented DPS check for heal aura, adjusted targeting criteria for summoned creatures, tweaked heal method, fixed flamecatcher ammo loss, updated Enrage target and expanded spellcasting item compatibility for movement speed charm. - by ipdnaeip (#864)
Added getEntitiesWithinCylinder and getLivingWithinCylinder methods to return all entities within a cylinder.

Replaced getLivingWithinRadius for spells that should use a cylinder instead. The height of the cylinder is determined by the height of the entities.

Added a DPS checker on the heal aura damage just in case someone has damage immunity disabled.

Modified the AllyDesignationSystem and Wizard classes to no longer target summoned creatures automatically. They will still target hostile summoned creatures or creatures from players that have aggressed on them.

Modified the heal method in the Heal class to not reduce absorption amount. It should never really happen, but just in case.

Modified the flamecatcher to no longer lose ammo if it was used but no arrow was fired.

Enrage now targets EntityLiving instead of EntityCreature.

The movement speed charm now works with any spellcasting item as opposed to just wands.
2024-03-27 22:11:29 +01:00
WinDanesz 5bf4650da1 fix: Fixed wizards not using addon book spells 2022-07-11 21:14:45 +02:00
WinDanesz 8e9c270b77 fix: Fixed wizards selling addon book spells with the default book 2022-07-11 21:13:38 +02:00
WinDanesz 00080331df feat: Reworked the Summon Iron Golem spell, its new name is Summon Spectral Golem 2022-07-08 22:18:59 +02:00
WinDanesz 3a93877de3 fix: Fire Ring shouldn't instantly melt away players on servers anymore 2022-07-08 21:11:10 +02:00
WinDanesz ed6e3df66e feat: The Arrow Rain spell summons conjured arrows 2022-07-08 20:32:22 +02:00
WinDanesz d23c4cba18 feat: Forcefield loses 1% durability each time it repulses an enemy or a projectile 2022-07-08 19:16:54 +02:00
WinDanesz 3d30b0b96f feat: Forcefield loses 2% durability each time it repulses an enemy or a projectile 2022-06-22 22:38:54 +02:00
WinDanesz c0184fde8e Fixed a bug with EntityWizard using one of EntityEvilWizard's DataParameter 2022-02-05 22:48:35 +01:00
WinDanesz e985a8f15b Fixed dispenser crash with Slime spell. Fixes #735 2022-02-03 11:57:22 +01:00
WinDanesz 1473c7e9b7 Fixes wizards being stuck in a continuous, client-side only spellcasting loop of their continuous spells if their target dies 2021-10-02 00:26:31 +02:00
Electroblob77 969f0b96fd Have custom large fireballs deal magic damage to ghasts in order to get around vanilla's hardcoded instanceof check, fixes #443 2021-01-17 17:40:09 +00:00
Electroblob77 21f7928b9c Guard against null target in remant AI, fixes #600 2021-01-17 14:58:59 +00:00
Electroblob77 32e92b4b04 Guard against null element in writeEntityToNBT for wizards and evil wizards, fixes #491 2020-12-20 23:24:30 +00:00
Electroblob77 2bb242e6fb Add flamecatcher spell, and addItemExtras hook for SpellConjuration 2020-10-21 22:23:54 +01:00
Electroblob77 bf13491987 A healthy splash of optimise imports 2020-10-18 00:12:29 +01:00
Electroblob77 6f57d2366e Fix healing totem beam origin for healing allies 2020-10-16 19:43:13 +01:00
Electroblob77 8b86bb1b31 Add Lokenzen's ring 2020-10-16 19:42:56 +01:00
Electroblob77 f5cd740497 Add amulet of esundor, plus fixes for frost barrier 2020-10-10 18:30:54 +01:00
Electroblob77 a5fb3c6ac5 Send packets for player motion 2020-09-27 17:54:13 +01:00
Electroblob77 22b284063b Should be server-side only 2020-09-27 17:49:24 +01:00
Electroblob77 c05f4001fd Add frost barrier spell 2020-09-27 17:48:37 +01:00
Electroblob77 c53c9b1793 Fix decay not saving properly 2020-09-24 18:56:35 +01:00
Electroblob77 aac931f6b2 Clean up a bunch of TODOs that are no longer relevant 2020-09-23 23:49:36 +01:00
Electroblob77 84236093c8 Plug spell property value into black hole radius calculations 2020-09-23 14:04:23 +01:00
Electroblob77 2f91573284 Block protection compat overhaul
- Unifies all block protection checks into helper methods in BlockUtils which trigger all the necessary forge events and vanilla methods
- Implements these checks in all the appropriate places and removes calls to EntityUtils#canDamageBlocks(...) where they are no longer needed
- Changes the mine spell to respect the config settings in line with the rest of the spells
- Fixes earthquake not respecting the settings at all
- Adds a separate config option for dispenser block damage and updates the description for the existing settings to reflect the changes
2020-09-23 00:57:55 +01:00
Electroblob77 ba487bea41 Add withering totem spell 2020-08-21 00:08:31 +01:00
Electroblob77 c90ec248cd Still need to check this, since not being allied and being a valid target are not necessarily equivalent 2020-08-15 23:21:32 +01:00
Electroblob77 de7226f792 Various tweaks to boulder 2020-07-05 15:46:49 +01:00
Electroblob77 22a125d720 Add boulder spell 2020-07-05 00:39:06 +01:00
Electroblob77 8ae6bc9102 Tidy up entity geometry stuff:
- Add a getCentre method for entities to GeometryUtils
- Replace getPositionEyes(0) with getPositionEyes(1) since it's more efficient, and by definition they must be the same
- Remove all the silly getEntityBoundingBox().minY stuff, this bug has been fixed since 1.8! (which begs the question: if it was considered a bug, how on earth did it go unfixed for that long?)
- A few other small things
2020-07-04 13:34:11 +01:00
Electroblob77 202552a967 Add cursed helm 2020-07-02 23:47:36 +01:00
Electroblob77 02ab4a9014 Make all radiant damage set fire to undead entities 2020-06-30 16:10:46 +01:00
Electroblob77 a547b3a384 Fix spirit horse dispel sound/behaviour 2020-06-30 15:53:15 +01:00
Electroblob77 6a8951ab39 Event priority 2020-06-30 14:06:41 +01:00
Electroblob77 b61bbda668 Fix radiant totem sound causing a CME 2020-06-29 23:52:41 +01:00
Electroblob77 a25b642164 Add sounds to radiant totem and update sounds for ray of purification 2020-06-29 18:43:54 +01:00
Electroblob77 3a68ba8927 Implement blast modifier support for all applicable constructs, plus misc construct-related cleanup and fixes 2020-06-28 16:56:18 +01:00
Electroblob77 97c21b5057 Remove unnecessary reflection 2020-06-28 14:56:35 +01:00
Electroblob77 080022127c Add radiant totem spell 2020-06-26 17:46:47 +01:00
Electroblob77 ac4bb8bc11 Shady particles 2020-06-20 22:47:55 +01:00
Electroblob77 f18f1d20f3 Make NPCs respect continuous spell cooldowns 2020-06-20 18:35:43 +01:00
Electroblob77 39e33848aa Rename to getLivingWithinRadius for clarity 2020-06-20 13:14:16 +01:00
Electroblob77 b65709fca4 Add blindness tweak and stop smoke bombs giving the mind trick effect 2020-06-20 13:08:16 +01:00
Electroblob77 a87eca3bd8 Store the caster UUID regardless of whether the entity actually exists, and only read the UUID if it exists in the tag compound 2020-06-19 16:33:57 +01:00
Electroblob77 238b9d04bb Split up and reorganise WizardryUtilities 2020-06-13 23:29:01 +01:00
Electroblob77 d60238a400 Remove animation from magic slime 2020-06-13 14:14:46 +01:00
Electroblob77 36a228489b Limit currency item stack size to between 1 and 64 (inclusive) 2020-06-13 12:45:27 +01:00
Electroblob77 1c0e046236 Snowstorms! 2020-06-12 23:27:20 +01:00
Electroblob77 8aadf5a446 Various improvements to sounds
- Added several new sounds, mostly for ice spells
- Added automatic registering of sound events
- Finally fixed the frost ray and wall of frost sounds
- Removed a few unused sound files
2020-06-12 22:15:44 +01:00