[−][src]Struct sulis_state::script::ScriptAppliedEffect
An already applied effect, in contrast to an effect being created
via ScriptEntity:create_effect
name() -> String
Returns the user defined name of this effect
tag() -> String
Returns the user defined tag of this effect
surface_points() -> Table
Returns a table of all the affected points for this effect. Only works on surfaces.
cur_duration() -> Int
Returns the number of rounds this effect has currently been active
total_duration() -> Int
Returns the total number of rounds this effect will be active for, or 0 for infinite duration (modal) effects
total_duration_is_infinite() -> Bool
Returns true if this effect has infinite duration (manually removed or modal), false otherwise
has_bonus_of_kind(kind: String) -> Bool
Checks whether this effect has one of more bonuses of the given kind. The kind
Bonus kinds include armor
, ap
, reach
, range
, initiative
, hit_points
,
melee_accuracy
, ranged_accuracy
, spell_accuracy
, defense
, fortitude
,
reflex
, will
, concealment
, concealment_ignore
, crit_chance
,
hit_threshold
, graze_threshold
, graze_multiplier
, hit_multiplier
,
crit_multiplier
, movement_rate
, move_anim_rate
, attack_cost
, ability_ap_cost
,
hidden
, free_ability_group_use
, abilities_disabled,
move_disabled,
attack_disabled,
flanked_immunity,
sneak_attack_immunity,
crit_immunity`
mark_for_removal()
Marks this effect to be removed on the next update. This is done asynchronously, so the effect will still be applied when this method returns.
Implementations
impl ScriptAppliedEffect
[src]
pub fn new(effect: &Effect, index: usize) -> ScriptAppliedEffect
[src]
Trait Implementations
impl Clone for ScriptAppliedEffect
[src]
fn clone(&self) -> ScriptAppliedEffect
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl UserData for ScriptAppliedEffect
[src]
fn add_methods<'lua, M: UserDataMethods<'lua, Self>>(methods: &mut M)
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScriptAppliedEffect
impl Send for ScriptAppliedEffect
impl Sync for ScriptAppliedEffect
impl Unpin for ScriptAppliedEffect
impl UnwindSafe for ScriptAppliedEffect
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<'lua, T> FromLua<'lua> for T where
T: 'static + UserData + Clone,
[src]
T: 'static + UserData + Clone,
impl<'lua, T> FromLuaMulti<'lua> for T where
T: FromLua<'lua>,
[src]
T: FromLua<'lua>,
pub fn from_lua_multi(
values: MultiValue<'lua>,
lua: Context<'lua>
) -> Result<T, Error>
[src]
values: MultiValue<'lua>,
lua: Context<'lua>
) -> Result<T, Error>
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'lua, T> ToLua<'lua> for T where
T: 'static + UserData + Send,
[src]
T: 'static + UserData + Send,
impl<'lua, T> ToLuaMulti<'lua> for T where
T: ToLua<'lua>,
[src]
T: ToLua<'lua>,
pub fn to_lua_multi(self, lua: Context<'lua>) -> Result<MultiValue<'lua>, Error>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,