itsTripp / Platformer_Shooter

0 stars 3 forks source link

Rework The Loot System #19

Open itsTripp opened 2 years ago

itsTripp commented 2 years ago

This system needs some rework.

Currently, this system will spawn a chest at a random spawn location. When the player collides with the chest, a random weapon will be instantiated.

Something that probably needs to be reworked is the random loot table. I'm sure there is a smarter and easier way to do this. This is the video I used to create that random loot table. https://www.youtube.com/watch?v=OUlxP4rZap0&ab_channel=GameDevHQ

I'd like newly spawned weapons to have zero ammo loaded. Instead, if a loot chest spawns out a gun, it will also spawn out the ammo type for that gun.

I know this really sounds counter-productive, but by design I want the player to constantly be worried about ammo. If the player currently has 5 shotgun bullets and they pick up a new shotgun that already has 10 bullets loaded, I don't want them automatically having 15 bullets to shoot. The player could exploit this and drop and pick up the shotgun multiple times to gain the maximum shotgun ammo amount. I want the player to only get ammo for weapons by picking up ammo items.