Git Product home page Git Product logo

Comments (9)

Procyonae avatar Procyonae commented on August 15, 2024 2

Nope, a parameter can be any of these and be used in switches for anything not covered by that

enum class cata_variant_type : int {
void_, // Special type for empty variants
achievement_id,
activity_id,
addiction_id,
bionic_id,
body_part,
bool_,
character_id,
chrono_seconds,
debug_menu_index,
efftype_id,
faction_id,
field_type_id,
field_type_str_id,
furn_id,
furn_str_id,
flag_id,
int_,
item_group_id,
itype_id,
matype_id,
mtype_id,
mongroup_id,
move_mode_id,
mutagen_technique,
mutation_category_id,
nested_mapgen_id,
npc_template_id,
oter_id,
oter_type_str_id,
overmap_special_id,
palette_id,
point,
profession_id,
proficiency_id,
skill_id,
species_id,
spell_id,
string,
ter_id,
ter_furn_transform_id,
ter_str_id,
trait_id,
trap_id,
trap_str_id,
tripoint,
vgroup_id,
widget_id,
zone_type_id,
num_types, // last
};

from cataclysm-dda.

Procyonae avatar Procyonae commented on August 15, 2024 1

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.

GuardianDll avatar GuardianDll commented on August 15, 2024

That assumes gun shop stock only single type of gun / caliber?

from cataclysm-dda.

Procyonae avatar Procyonae commented on August 15, 2024

No?

from cataclysm-dda.

GuardianDll avatar GuardianDll commented on August 15, 2024

I don't see how the game could do it then, even with code

from cataclysm-dda.

Procyonae avatar Procyonae commented on August 15, 2024

With multiple parameters? This doesn't need C++

from cataclysm-dda.

GuardianDll avatar GuardianDll commented on August 15, 2024

i eeeh i miss how it would work
isn't parameters are mostly for terrain/furniture? and not for itemgroups?

from cataclysm-dda.

PatrikLundell avatar PatrikLundell commented on August 15, 2024

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.

dominic-dimico avatar dominic-dimico commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.