This commit is contained in:
L.E.D
2017-02-05 13:43:22 -05:00
committed by Probe1
parent 9b5f06a093
commit 1b93bf9f98

View File

@@ -147,6 +147,11 @@
if((stacked.len + stacking.stacked.len + 2) >= MAX_FLATPACK_STACKS) //how many flatpacks we can in a stack (including the bases) if((stacked.len + stacking.stacked.len + 2) >= MAX_FLATPACK_STACKS) //how many flatpacks we can in a stack (including the bases)
to_chat(user, "You can't stack flatpacks that high.") to_chat(user, "You can't stack flatpacks that high.")
return return
if(user.incapacitated() || !user.can_MouseDrop()) //make sure they can interact with it and it's adjacent
return
if(!ishuman(user) && !isrobot(user)) //check mob type
return
user.visible_message("[user] adds [stacking.stacked.len + 1] flatpack\s to the stack.", user.visible_message("[user] adds [stacking.stacked.len + 1] flatpack\s to the stack.",
"You add [stacking.stacked.len + 1] flatpack\s to the stack.") "You add [stacking.stacked.len + 1] flatpack\s to the stack.")
add_stack(stacking) add_stack(stacking)