Comments (9)
Nope, a parameter can be any of these and be used in switches for anything not covered by that
Cataclysm-DDA/src/cata_variant.h
Lines 36 to 87 in ea11df8
from cataclysm-dda.
As far as I understand you'd need one parameter per gun type the store was to stock. You could also do it per gun group, so that you'd bunch a number of guns of the same caliber into a group with its corresponding ammo.
You could also achieve this by having one chunk per combination (and you could have parameters for the chunks), but that would mean it would have to be customized to the particular store layout.
I were planning one parameter per caliber with corresponding gun + ammo item groups ye
I live in the US, and the South no less (basically gun country). It is indeed logical that the store would have ammo stocked for its guns, but that is under normal circumstances. Even still, I've been within earshot of the sales counter more than a couple of times and heard, "Sorry, we're out of that ammo right now. We're getting another shipment this week." Some people go to gun stores just to buy ammunition.
Even if the store promises to stock ammo to match its guns, this guarantee may not hold post-cataclysm. I'd expect most of the ammunition to be bought up by the time riots peak. Also, you may not be the first living person to have been in that gun store post-cataclysm---someone could have come along to take the ammo, but not the matching guns, if they already had their own gun.
It's also possible for a store to have ammo but no guns to match, if the guns just happen to sell out faster than the ammo.
That's totally fair, I had no intention of increasing the actual numbers of guns/ammo just what spawns but approaching cata you'd imagine that they'd both be stocking whatever they could and peeps would be buying up stuff like crazy so this probably wouldn't be worthwhile
from cataclysm-dda.
That assumes gun shop stock only single type of gun / caliber?
from cataclysm-dda.
No?
from cataclysm-dda.
I don't see how the game could do it then, even with code
from cataclysm-dda.
With multiple parameters? This doesn't need C++
from cataclysm-dda.
i eeeh i miss how it would work
isn't parameters are mostly for terrain/furniture? and not for itemgroups?
from cataclysm-dda.
As far as I understand you'd need one parameter per gun type the store was to stock. You could also do it per gun group, so that you'd bunch a number of guns of the same caliber into a group with its corresponding ammo.
You could also achieve this by having one chunk per combination (and you could have parameters for the chunks), but that would mean it would have to be customized to the particular store layout.
from cataclysm-dda.
I live in the US, and the South no less (basically gun country). It is indeed logical that the store would have ammo stocked for its guns, but that is under normal circumstances. Even still, I've been within earshot of the sales counter more than a couple of times and heard, "Sorry, we're out of that ammo right now. We're getting another shipment this week." Some people go to gun stores just to buy ammunition.
Even if the store promises to stock ammo to match its guns, this guarantee may not hold post-cataclysm. I'd expect most of the ammunition to be bought up by the time riots peak. Also, you may not be the first living person to have been in that gun store post-cataclysm---someone could have come along to take the ammo, but not the matching guns, if they already had their own gun.
It's also possible for a store to have ammo but no guns to match, if the guns just happen to sell out faster than the ammo.
from cataclysm-dda.
Related Issues (20)
- Overmap tileset fix for lake and ocean shore corners
- [MoM] "Droning hum" depletes gas mask filters
- Tileset-level custom overmap notes HOT 5
- [MoM] Anti-psi zombies are really bad at using their anti-psi attacks HOT 2
- Refugee Center Guards Do Not Rotate Positions HOT 1
- Bionic menu should reserve some invlets HOT 1
- Zombie Scientists should still have their science ID on them HOT 11
- E-ink tablet pc consumes too much energy
- (Some?) zombies have an absurd preference for their grab attack HOT 4
- uilist issues from migration #74341 HOT 14
- Magiclysm spellcasting menu is missing its category selector HOT 4
- The debug menu has a funny size
- Magiclysm spell casting menu doesnโt render color tags in the spell description
- power grid action menu should be positioned relative to underlying UI
- ImGui uilist menus render their footer text without color tags
- Martial arts selection menu needs a size override
- Filter input for ImGui uilist menus shows up behind the menu
- progress is not shown when loading a game
- Editing your skills with the debug menu segfaults the game
- Disassembling/butchering selection Imgui menu does not display time estimation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cataclysm-dda.