From e22e853f214b8c388eb5b4f7c14ff69418b60137 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Wed, 5 Aug 2015 08:18:03 -0500 Subject: [PATCH] Fix some formatting --- common/script/index.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/script/index.coffee b/common/script/index.coffee index 3ae0fc6be4..59b4133898 100644 --- a/common/script/index.coffee +++ b/common/script/index.coffee @@ -1445,10 +1445,10 @@ api.wrap = (user, main=true) -> returns random property (the value) ### randomVal: (obj, options) -> - array = if options?.key then _.keys(obj) else _.values(obj) - rand = user.fns.predictableRandom(options?.seed) - array.sort() - array[Math.floor(rand * array.length)] + array = if options?.key then _.keys(obj) else _.values(obj) + rand = user.fns.predictableRandom(options?.seed) + array.sort() + array[Math.floor(rand * array.length)] ### This allows you to set object properties by dot-path. Eg, you can run pathSet('stats.hp',50,user) which is the same as