make copying not abortable
This commit is contained in:
parent
f78b69b6f0
commit
35337651a0
1 changed files with 14 additions and 10 deletions
|
@ -50,16 +50,20 @@ instance ObjectAction ObjType ObjState where
|
||||||
|
|
||||||
objectTransition ObjCopier "copying" _ ent = do
|
objectTransition ObjCopier "copying" _ ent = do
|
||||||
[e] <- efor (anEnt ent) $ do
|
[e] <- efor (anEnt ent) $ do
|
||||||
let nstat = AnimState
|
ttl <- query objStateTime
|
||||||
(AnimId "copier" "open" N)
|
if ttl < 0
|
||||||
0
|
then do
|
||||||
0
|
let nstat = AnimState
|
||||||
return unchanged
|
(AnimId "copier" "open" N)
|
||||||
{ anim = Set nstat
|
0
|
||||||
, objState = Set "idle"
|
0
|
||||||
, objStateTime = Unset
|
return unchanged
|
||||||
, objPlayerActivated = Unset
|
{ anim = Set nstat
|
||||||
}
|
, objState = Set "idle"
|
||||||
|
, objStateTime = Unset
|
||||||
|
, objPlayerActivated = Unset
|
||||||
|
}
|
||||||
|
else return unchanged
|
||||||
return e
|
return e
|
||||||
|
|
||||||
objectTransition _ _ _ _ = return unchanged
|
objectTransition _ _ _ _ = return unchanged
|
||||||
|
|
Loading…
Reference in a new issue