CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.26k stars 4.12k forks source link

[WIP] [CR] Delivery Packages (need C++ help) #25194

Closed cosmiccoincidence closed 5 years ago

cosmiccoincidence commented 6 years ago

SUMMARY

I'm currently working on making delivery packages a thing. Upon opening a package you will get one of my predetermined package drops (list of drops below, and would appreciate feedback on said list). These drops will be categorized based on total volume and will come in 1 of 3 sized cardboard boxes... small(1L), medium(8L), or large(20L)... along with some packaging (either bubble wrap or balls of paper).

WHAT I GOT SO FAR

What I got so far is...

SMALL

MEDIUM

LARGE

WHAT I STILL NEED TO DO

What I still need to make...

WHAT I NEED HELP WITH

More precisely, I need code that when a package is disassembled or activated (your choice Mr. Hackerman) it breaks down into a cardboard box (small, medium or large depending on the package size), the package contents (based on the package size), and packaging materials (amount based on package size). ZhilkinSerg made a basic example...

    "use_action" : {
      "type" : "unpack",
      "unpack_item_group" : "postcards"
    }

So to summarize it differently, what I want is...

When a small package gets opened it...

When a medium package gets opened it...

When a large package gets opened it...

I would also like...

When a newspaper ball gets activated it unfolds into one of the following...

The reason for the newspaper balls being an alternative to bubble wrap as a packaging material is to make getting bubble wrap (used in noise traps) from packages less common.

Regilith commented 6 years ago

It could be fun to add a "Merchandise Distribution Hub" location with a bunch of these packages on conveyor belts, and empty cardboard boxes lying around.

cosmiccoincidence commented 6 years ago

@Regilith Not a bad idea. I was thinking of just adding them to the post office. But I like your idea a bit better. Maybe Ill add the distribution hub which will have all the sizes of packages, but still add just small packages to the post office...


Put "Add Distribution Hub location" into my todo list.

Regilith commented 6 years ago

@cosmiccoincidence +1 on the post office, post offices could use some love. Perhaps spawn the boxes inside the safes and back room?

Dansiman commented 5 years ago

unfolded poncho X2

Wouldn't it make more sense for the box to contain folded ponchos? Likewise for the emergency blankets, and anything else that's foldable. Manufacturers do tend to fold things that can be folded, before packaging them up for distribution.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not \'bump\' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

stale[bot] commented 5 years ago

This issue has been automatically closed due to lack of activity. This does not mean that we do not value the issue. Feel free to request that it be re-opened if you are going to actively work on it