From 71269a762f948483a514114aa18161d5f744aa4f Mon Sep 17 00:00:00 2001 From: Alice Harris Date: Sun, 14 Sep 2014 09:13:03 +1000 Subject: [PATCH] reinsert comment that was accidentally removed --- script/index.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/script/index.coffee b/script/index.coffee index 606da6f649..1518a12e44 100644 --- a/script/index.coffee +++ b/script/index.coffee @@ -411,6 +411,7 @@ api.wrap = (user, main=true) -> # Lose a gear piece # Free items (value:0) cannot be lost to avoid "pay to win". Subscribers have more free (Mystery) items and so would have a higher chance of losing a free one. The only exception is that the weapon_warrior_0 free item can be lost so that a new player who dies before buying any gear does experience equipment loss. + # Note ""+k string-casting. Without this, when run on the server Mongoose returns funny objects cl = user.stats.class gearOwned = if (typeof user.items.gear.owned.toObject is "undefined") then user.items.gear.owned else user.items.gear.owned.toObject() losableItems = {}