cmss13 icon indicating copy to clipboard operation
cmss13 copied to clipboard

shotgunshell boxes and big creates are not linked in reqestion vendor

Open cuberound opened this issue 2 years ago • 1 comments

Testmerges

#5938: 'Adds Shockwaves to Explosions and Xeno Screeches ' by GrrrKitten at commit 23c093ff8c #5914: 'Ports stripping menu from TG' by ihatethisengine at commit ac0caebb9d #6015: 'Colony Synthetic variants with a refresh' by QuickLode at commit c6f1f9a71d #6040: 'Better throw logic' by Git-Nivrak at commit 73147634ec #5401: 'M540-B Armored Recon Carrier' by Zonespace27 at commit 6cbd84ffea #6039: 'Project ARES TM Holder (v5)' by realforest2001 at commit 20f293b14d

Round ID

21640

Description of the bug

possibly more of an oversight, with nades and other ammo the huge boxes share ammo with normal mags, aka when you take box with 10 m41a mags tere is 10 less m41a mags less in the vendor . does not work with shotgun shell boxes

What's the difference with what should have happened?

there should be 4 times the number of small boxes as large boxes and when you vend large box it reduces number of small boxes by 4

How do we reproduce this bug?

1.check number of boxes 2.vend big box 3.check again, it is the same

Issue Bingo

  • [X] Issue could be reproduced at least once
  • [X] Issue happened in a recent (less than 7 days ago) round
  • [X] Couldn't find an existing issue about this (https://github.com/cmss13-devs/cmss13/issues)

cuberound avatar Apr 06 '24 10:04 cuberound

this PR added the logic for it. should be a good start to look into it https://github.com/cmss13-devs/cmss13/pull/1759

Huffie56 avatar Apr 26 '24 11:04 Huffie56

As I'm looking at my old code, the Shotgun shell boxes were never integrated into the change since they are a weirder case. Shotgun Shell Box contains handfuls of shotgun shells, not full Box Of XXX Shells. So you'd have to have a separate code converting Shell Boxes into handfuls and those back into Boxes of Shells. I guess it would be doable, especially if you add individual handfuls of ammo into the vendor itself...

ThePiachu avatar Jun 03 '24 13:06 ThePiachu

Looking more into it, another cursed thing about shotgun shells is that they aren't magazines, but handfuls, and the two type of Boxes kind of handle them differently... Might be a bit complicated to get this thing straight...

ThePiachu avatar Jun 06 '24 13:06 ThePiachu

Okay, I think I've got it. Will also clean up something else I had an idea to do with vendors years back...

ThePiachu avatar Jun 06 '24 14:06 ThePiachu

Should be completed via #6397

ThePiachu avatar Jul 08 '24 09:07 ThePiachu