Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/com/company/assembleegameclient/objects/Player.as
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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_));
Expand Down