-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add: Abstract item stacking. Client lag removal edition
- Loading branch information
1 parent
f6fcbcc
commit 4c12490
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* This code contains abstract stacked item. Main goal of this is to make items dropping from storages, smartfridges, etc. not lag the clients out. | ||
* It is, as simple is possible, tries to implement stacked items behavior like in storages. | ||
* Main features: | ||
* - Items appear stacked when dropped from smartfridge on destruction or when amount taken at one time is too high | ||
* - Same rule applies to bags or storages with display_contents_with_number and allow_quick_empty properties enabled | ||
* - Can't be taken by hand. Instead, player takes one sample from entire stack. | ||
* - Same rule applies to pulling. Player pulls only one sample from entire stack. | ||
* - Player can walk over stack. | ||
* - Integrity of stack is determenied by summary of stacked items. | ||
* - One by one items are deleted from stack if stack is damaged by integrity of one stack item. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters