_std/defines/abilities.dm
CAST_ATTEMPT_SUCCESS | Cast was successful, deduct points, modify cooldowns, etc |
---|---|
CAST_ATTEMPT_FAIL_CAST_FAILURE | |
CAST_ATTEMPT_FAIL_DO_COOLDOWN | Cast failed, but we want to put it on cooldown. This is the only return which will cause a cooldown. |
CAST_ATTEMPT_FAIL_NO_COOLDOWN | Cast failed for some reason, we don't want to start the cooldown |
ABILITY_AREA_CHECK_ALL_RESTRICTED_Z | Cannot cast on restricted Z levels (mostly Z2 and Z4) |
ABILITY_AREA_CHECK_VR_ONLY | Cannot cast in VR |
Define Details
ABILITY_AREA_CHECK_ALL_RESTRICTED_Z
Cannot cast on restricted Z levels (mostly Z2 and Z4)
ABILITY_AREA_CHECK_VR_ONLY
Cannot cast in VR
CAST_ATTEMPT_FAIL_CAST_FAILURE
- Awful name, I'm sorry. tryCast() calls cast(), and this is the value returned from cast() if something goes wrong,
- which is then relayed and returned by tryCast(). Think of it as 'tryCast() failed because cast() failed'.
- This is also sometimes used early on in tryCast to abort early if something is really wrong, so uhhh
CAST_ATTEMPT_FAIL_DO_COOLDOWN
Cast failed, but we want to put it on cooldown. This is the only return which will cause a cooldown.
CAST_ATTEMPT_FAIL_NO_COOLDOWN
Cast failed for some reason, we don't want to start the cooldown
CAST_ATTEMPT_SUCCESS
Cast was successful, deduct points, modify cooldowns, etc