From a0b8808081be742a76a206311ae8dc2a1019ab78 Mon Sep 17 00:00:00 2001 From: dobein Date: Fri, 4 Aug 2017 01:55:08 -0400 Subject: [PATCH] Allow taking out item from gift chests Allows taking out one type of items from the gift chests using right click. --- src/com/company/assembleegameclient/objects/Player.as | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/company/assembleegameclient/objects/Player.as b/src/com/company/assembleegameclient/objects/Player.as index ebdff1e..9434e32 100644 --- a/src/com/company/assembleegameclient/objects/Player.as +++ b/src/com/company/assembleegameclient/objects/Player.as @@ -81,6 +81,7 @@ public class Player extends Character { public static const SEARCH_LOOT_FREQ:int = 20; public static const MAX_LOOT_DIST:Number = 1; public static const VAULT_CHEST:int = 1284; + public static const GIFT_CHEST:int = 1860; public static const HEALTH_POT:int = 2594; public static const MAGIC_POT:int = 2595; public static const MAX_STACK_POTS:int = 6; @@ -876,7 +877,7 @@ public class Player extends Character { return; } for each(goCont in map_.goDict_) { //find nearest chest - if (goCont.objectType_ == VAULT_CHEST) { + if (goCont.objectType_ == VAULT_CHEST || goCont.objectType_ == GIFT_CHEST) { if (cont == null) { cont = (goCont as Container); dist = int((x_ -cont.x_) * (x_ -cont.x_) + (y_ -cont.y_) * (y_ -cont.y_));