Commit graph

2283 commits

Author SHA1 Message Date
jayoevans
b2efe13575 Fixed commands 2019-12-02 11:52:10 +10:00
jayoevans
03844d5bab Committing to maintain remote branch 2019-11-23 17:09:50 +10:00
jayoevans
c6d56bd9ce Setup ability handler system 2019-11-11 14:24:46 +10:00
jayoevans
fc29b27808 Updated stats, toggle, and who commands 2019-10-30 21:14:53 +10:00
jayoevans
16f90d20ab Updated help, permaremove and remove commands (temporarily deleted preset command) 2019-10-30 13:33:02 +10:00
jayoevans
456b115bf6 Updated copy and display commands 2019-10-30 11:51:38 +10:00
jayoevans
ad72ad026c Updated Choose and Clear commands 2019-10-29 15:18:00 +10:00
jayoevans
9c15e20924 Updated ability util classes 2019-10-29 09:38:59 +10:00
jayoevans
d44077f99b Fixed many errors with Ability, ComboAbility, MultiAbility, and PassiveAbility Managers 2019-10-28 20:54:33 +10:00
jayoevans
736998dd4a Updated PassiveHandler 2019-10-27 15:03:44 +10:00
jayoevans
b4ec8c30e4 Updated BindCommand 2019-10-27 14:34:20 +10:00
jayoevans
e0955eb45b Merge branch 'update/database' into update/ability-rework 2019-10-27 13:47:33 +10:00
jayoevans
403a6c1371 Added new PassiveAbilityManager + removed old ability managers 2019-10-27 13:43:08 +10:00
jayoevans
470a03e571 Updated AddCommand 2019-10-26 16:57:25 +10:00
jayoevans
809c451461 Setup ability registry 2019-10-26 15:56:30 +10:00
jayoevans
ad148a7881 New MultiAbilityManager 2019-10-26 13:33:38 +10:00
jayoevans
dcdd3326a5 Merge branch 'update/database' into config-population 2019-10-25 22:13:09 +10:00
jayoevans
b9db7a3d68 Finished new combo system (untested) 2019-10-25 22:11:50 +10:00
vega1
afc0f0b68a Adds Description and Usage Strings 2019-10-25 00:03:32 -07:00
jayoevans
af0cf17b0b Initial rework 2019-10-24 21:11:15 +10:00
jayoevans
c05022aa01 Reformatted to follow PK standards 2019-10-24 13:39:00 +10:00
jayoevans
00093af01b Cache bending players for 30 seconds after disconnect 2019-10-23 19:25:09 +10:00
jayoevans
29f6056b1c Read and write permaremoved to/from database, added PlayerBindAbilityEvent 2019-10-23 19:05:11 +10:00
jayoevans
6a5c963ec2 Use new configuration system 2019-10-23 17:29:22 +10:00
jayoevans
b50e6b5072 Merge branch 'update/configuration' into update/database 2019-10-23 17:22:47 +10:00
jayoevans
060f3e34b3 Setup AbilityManager with refactored back-end 2019-10-23 17:21:39 +10:00
jayoevans
7fd3186d40 Updated conflicting config values 2019-10-23 16:31:22 +10:00
jayoevans
2d4654a18b Merge branch '1.13' into update/configuration 2019-10-23 16:31:10 +10:00
jayoevans
64b138a6c1 Cleaned ElementManager + added more BendingPlayer methods 2019-10-23 09:12:18 +10:00
jayoevans
87b6186bee Added methods to BendingPlayer 2019-10-22 23:10:40 +10:00
jayoevans
aee46d53c3 Added new cooldown system 2019-10-22 18:25:21 +10:00
jayoevans
3641f4ab9b Setup Element back-end 2019-10-22 14:44:05 +10:00
Vahagn Tovmasian
0423d218ee
Update CopyCommandConfig.java 2019-10-21 20:37:39 -07:00
Vahagn Tovmasian
54d27d9b65
Update ClearCommandConfig.java 2019-10-21 20:32:28 -07:00
Vahagn Tovmasian
8ba54720b7
Update ChooseCommandConfig.java 2019-10-21 20:30:46 -07:00
Vahagn Tovmasian
3c90931a5a
Update CheckCommandConfig.java 2019-10-21 20:28:57 -07:00
Vahagn Tovmasian
0e9838eb69
Update BindCommandConfig.java 2019-10-21 20:25:31 -07:00
Vahagn Tovmasian
b8167c121c
Update Add Command Config
- Add description
2019-10-21 20:20:22 -07:00
jayoevans
299cec824e Initial rework of the BendingPlayer back-end 2019-10-22 11:49:47 +10:00
Josh
a8a8daa6d0 Fix catapult and metalclips not respecting invincible or region protection (#1027)
## Fixes
* Fixes catapult launching player with invincible toggled or protected region
* Fixes metalclip working on players with invincible toggled
2019-09-28 12:00:31 -07:00
Josh
da76d0ac12 Fix Preset command not being able to list page numbers higher than 1 (#1024)
## Fixes
* Fixes listing preset pages. Previously doing "/b preset list 2" would just return the help message
2019-09-10 18:54:18 -07:00
Benford Whitaker
2091e58c35 AirBlast and AirBurst Changes (#1017)
## Removals
* Removes `AirBurst#getAffectedEntities()`, shouldn't allow direct access to the list

## Misc. Changes
* Lowers "friction" in AirBlast knockback for entities on the ground
* Ignore "friction" in AirBlast when the AirBurst source isn't null
* Changes entity velocity comparison to only add vectors angled > pi/3 from push vector
* Increase default AirBurst push option
2019-09-08 20:41:49 -07:00
Benford Whitaker
0f2940f5eb Remove revertBlock recursive calls in EarthAbility and Collapse (#1023)
## Fixes
* Fixes recursive calls to `EarthAbility#revertBlock(Block)`
2019-09-08 20:19:49 -07:00
Hernán Indíbil de la Cruz Calvo
861f0055d5 Fix WaterReturn not finding bottles after potions (#1021)
## Additions
Static Function that returns the slot id of the first water bottle found, -1 if none found. Used to not repeat code that should be the same (hasWaterBottle and emptyWaterBottle start finding this index, but they don't use the same code).

## Fixes
Fixes an error in hasWaterBottle function. In the former version of the WaterReturn.java file, hasWaterBottle only tests if the first item with Material.POTION in the inventory is of type PotionType.WATER. Having a random potion in the inventory in any slot before a Water Bottle makes this to return false, instead of checking all the potions in the Player Inventory. This causes the player to be unable to use the bottle as a water source. The new code checks all the potions.

## Misc. Changes
Since the items in an inventory aren't usually sorted (players don't sort items by id in their inventories), the "contains" method iterates all over the items on the inventory until it finds one with the specified material. The "first" method does the same, but instead of returning a boolean, it gives us the slot index of the item or -1 if not found. Since in "fillBottle" method we are going to calculate that index after checking whether the item is in the inventory or not, I've calculated this index with the "first" method and checking if it is greater or equals than 0 (not -1). Doing so we don't repeat the search task and we have a little improvement in efficiency terms.
2019-09-02 09:53:51 -07:00
Benford Whitaker
c4be31c3b9 Fix Charged FireBlast radius and cooldown (#1019)
## Fixes
* Fixes Charged FireBlast radius being too big
* Fixes Charged FireBlast cooldown happening without using the ability
2019-08-31 19:42:32 -07:00
Josh
34fa6d08b8 Fix cooldowns of fire abilities with a duration, getClosestEntity, and Surge Wall diagonal check (#1016)
## Fixes
* Fixes getClosestEntity to not rely on a distance check for if the entity is returned, but instead purely get the closest entity from getEntitiesAroundPoint
* Fixes SurgeWall to not do that new diagonal check, fixes Ice wall glitching out

## Misc. Changes
* Changes JetBlaze hitbox size, was way too big
* Changes FireJet, WallOfFire, and the FireJet Combos cooldowns to activate when the move completes
2019-08-31 16:28:31 -07:00
Vahagn Tovmasian
86e0404728 Populating Values and Naming Accord
- Removes unused damage value from Twister
- Populates ChiProperties BlockChiChance and BlockChiDuration.
2019-08-28 12:55:52 -07:00
Vahagn Tovmasian
c6e208cdfe Populating Config Values
- Populates config values for new configuration system.
2019-08-27 22:42:15 -07:00
Benford Whitaker
5d9e1d5b05 Fix infinite recursion in GeneralMethods from incorrect method call (#1014)
## Fixes
* Fixes infinite recursion in `GeneralMethods#getTargetedLocation(Player, int)`
2019-08-26 00:18:58 -07:00
Benford Whitaker
cd9968a1c1 Fix EarthBlast and Suffocate, and clean up RaiseEarth (#1009)
## Additions
* Adds logic for EarthBlast being used on ceilings
* Adds default cooldown to Suffocate

## Changes
* Fixes Suffocate being usable through walls
* Improves logic for EarthBlast pathing in general

## Removals
* `ALL_AFFECTED_BLOCKS` in RaiseEarth isn't actually used, removes it.
2019-08-25 21:18:40 -07:00