Safe Haskell | None |
---|---|
Language | Haskell2010 |
Handle effects (most often caused by requests sent by clients).
- applyItem :: (MonadAtomic m, MonadServer m) => ActorId -> ItemId -> CStore -> m ()
- meleeEffectAndDestroy :: (MonadAtomic m, MonadServer m) => ActorId -> ActorId -> ItemId -> Container -> m ()
- effectAndDestroy :: (MonadAtomic m, MonadServer m) => Bool -> ActorId -> ActorId -> ItemId -> Container -> Bool -> [Effect] -> ItemFull -> m ()
- itemEffectEmbedded :: (MonadAtomic m, MonadServer m) => ActorId -> Point -> ItemBag -> m ()
- dropCStoreItem :: (MonadAtomic m, MonadServer m) => Bool -> CStore -> ActorId -> Actor -> Int -> ItemId -> ItemQuant -> m ()
- dominateFidSfx :: (MonadAtomic m, MonadServer m) => FactionId -> ActorId -> m Bool
- pickDroppable :: MonadStateRead m => ActorId -> Actor -> m Container
- cutCalm :: (MonadAtomic m, MonadServer m) => ActorId -> m ()
Documentation
applyItem :: (MonadAtomic m, MonadServer m) => ActorId -> ItemId -> CStore -> m () Source #
meleeEffectAndDestroy :: (MonadAtomic m, MonadServer m) => ActorId -> ActorId -> ItemId -> Container -> m () Source #
effectAndDestroy :: (MonadAtomic m, MonadServer m) => Bool -> ActorId -> ActorId -> ItemId -> Container -> Bool -> [Effect] -> ItemFull -> m () Source #
itemEffectEmbedded :: (MonadAtomic m, MonadServer m) => ActorId -> Point -> ItemBag -> m () Source #
dropCStoreItem :: (MonadAtomic m, MonadServer m) => Bool -> CStore -> ActorId -> Actor -> Int -> ItemId -> ItemQuant -> m () Source #
Drop a single actor's item. Note that if there are multiple copies, at most one explodes to avoid excessive carnage and UI clutter (let's say, the multiple explosions interfere with each other or perhaps larger quantities of explosives tend to be packaged more safely).
dominateFidSfx :: (MonadAtomic m, MonadServer m) => FactionId -> ActorId -> m Bool Source #
pickDroppable :: MonadStateRead m => ActorId -> Actor -> m Container Source #
cutCalm :: (MonadAtomic m, MonadServer m) => ActorId -> m () Source #