Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gunmod parameter "ups_charges" mentioned in documentation but ignored by the game. #37763

Closed
eilaattwood opened this issue Feb 6, 2020 · 0 comments · Fixed by #37766
Closed
Labels
<Bug> This needs to be fixed [C++] Changes (can be) made in C++. Previously named `Code` Items: Gunmod / Toolmod Weapon and tool attachments, and add-ons

Comments

@eilaattwood
Copy link
Contributor

Describe the bug

I'm trying do define a gunmod that adds UPS power consumption to the weapon that hasn't it in stock condition. That doesn't work despite being documented in JSON_INFO.md

Steps To Reproduce

Steps to reproduce the behavior:

  1. Define given gunmod:
  {
    "id": "electric_pump",
    "type": "GUNMOD",
    "name": { "str":"electric pump", "str_pl":"electric pumps" },
    "description": "A high pressure electric pump, greatly decreases pneumatic weapon reload time, but requires UPS charges to work.",
    "weight": "120 g",
    "volume": "250 ml",
    "integral_volume": 0,
    "integral_weight": 0,
    "price": 1500,
    "material": [ "steel" ],
    "symbol": ":",
    "color": "dark_gray",
    "location": "mechanism",
    "mod_targets": [ "tihar", "helsing", "pneumatic_shotgun", "airspeargun" ],
    "install_time": "30 m",
    "min_skills": [ [ "electronics", 4 ], [ "mechanics", 3 ] ],
    "ups_charges": 5,
    "reload_modifier": -95
  }
  1. Spawn pneumatic rifle and attach gunmod.
  2. Check if it requires UPS charges to shoot.

Expected behavior

Gun starts to require specified amount of UPS charges to shoot.

Screenshots

elec_pump

Versions and configuration

  • OS: Linux Mint x64
  • Game Version: 0.D-11798-g1eb07c7d21-dirty
  • Graphics version: Tiles
  • Mods loaded: Aftershock, Engineering Essentials

Additional context

N/A

@Night-Pryanik Night-Pryanik added <Bug> This needs to be fixed [C++] Changes (can be) made in C++. Previously named `Code` Items: Gunmod / Toolmod Weapon and tool attachments, and add-ons labels Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bug> This needs to be fixed [C++] Changes (can be) made in C++. Previously named `Code` Items: Gunmod / Toolmod Weapon and tool attachments, and add-ons
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants