Volte6 / GoMud

Public repository for GoMud, a Go based Mud server.
49 stars 8 forks source link

Add command to store items in containers #152

Closed Volte6 closed 1 month ago

Volte6 commented 1 month ago

Motivation

You can remove from room containers like chests, but not remove. Lets fix this.

Plan

Add a configurable MaxItemCount to containers. If zero, default to 10

Items that spawn in the chest take precedence. If items are added beyond the capacity, items will random pop out of the container and onto the floor (unless they are items that spawn in the chest).

Volte6 commented 1 month ago

This is addressed in this PR: https://github.com/Volte6/GoMud/pull/155

Closing.

Volte6 commented 1 month ago

Note: Did not add a configurable max items for now. Just set to a hard coded 10 items.