Skip to content
Snippets Groups Projects
Commit 38fa3613 authored by Travis Savo's avatar Travis Savo
Browse files

Move body test coverage

parent 01502f05
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
Loading
@@ -2,9 +2,10 @@ global.$game = {} if not global.$game
global.$game.common = {} if not global.$game.common
 
global.$game.common.move = (what, to)->
_ = require "underscore"
what.location = global.$game.$nowhere if not what.location
if what.location?.contents?
what.location.contents = what.location.contents.remove(what)
what.location.contents = _(what.location.contents).without(what)
to.contents = [] if not to.contents
to.contents.push what
what.location = to
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment