mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-28 15:38:00 +01:00
4202723731
- cast and shoot now both use the slot that's visually selected in the hud - swapping between first/second slot is done only by sneaking - there are now messages in the hud indicating the spell being cast - gems now have a cooldown after being used - holding a gem now changes the selector icon and title to make it clear that spells can be swapped - activating an ability whilst holding a gem changes the message to indicate you're casting the spell from the gem rather than your spell slot - ability titles now reflect what they do when sneaking - equipping a spell from a gem whilst in creative mode no longer consumes the gem's spell
28 lines
692 B
Java
28 lines
692 B
Java
package com.minelittlepony.unicopia.ability;
|
|
|
|
public enum AbilitySlot {
|
|
/**
|
|
* No slot. Corresponds to abilities that are not equipped.
|
|
*/
|
|
NONE,
|
|
/**
|
|
* The primary ability slot. Corresponds to the largest ring in the HUD
|
|
*/
|
|
PRIMARY,
|
|
/**
|
|
* The secondary ability slot. Corresponds to the top small ring in the HUD
|
|
*/
|
|
SECONDARY,
|
|
/**
|
|
* The tertiary ability slot. Corresponds to the bottom small ring in the HUD.
|
|
*/
|
|
TERTIARY,
|
|
/**
|
|
* The passive primary ability slot. Appears in place of the primary ability whilst sneaking.
|
|
*/
|
|
PASSIVE;
|
|
|
|
public boolean isPassive() {
|
|
return this == PASSIVE;
|
|
}
|
|
}
|