mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-07-03 17:52:12 +08:00
Update world.js
This commit is contained in:
@@ -917,6 +917,8 @@ var World = {
|
|||||||
Engine.keyLock = false;
|
Engine.keyLock = false;
|
||||||
// Explore in a temporary world-state. We'll commit the changes if you return home safe.
|
// Explore in a temporary world-state. We'll commit the changes if you return home safe.
|
||||||
World.state = $.extend(true, {}, $SM.get('game.world'));
|
World.state = $.extend(true, {}, $SM.get('game.world'));
|
||||||
|
// Some weirdness in jQuery's extend method is causing the map to not be deep copied...
|
||||||
|
World.state.map = $.extend(true, {}, World.state.map);
|
||||||
World.setWater(World.getMaxWater());
|
World.setWater(World.getMaxWater());
|
||||||
World.setHp(World.getMaxHealth());
|
World.setHp(World.getMaxHealth());
|
||||||
World.foodMove = 0;
|
World.foodMove = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user