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

Jsonized time to atack skill data #35830

Merged

Conversation

ZhilkinSerg
Copy link
Contributor

Summary

SUMMARY: Infrastructure "Jsonized time to atack skill data "

Purpose of change

Allow defining of time to attack data in json for vanilla and mods skills.

Describe the solution

  {
    "type": "skill",
    "ident": "smg",
...
    "time_to_attack": { "min_time": 20, "base_time": 80, "time_reduction_per_level": 10 },
...
  },

Additional context

#35684 can be closed after current PR is merged and mod author should add a new skill in their mod, e.g.:

  {
    "type": "skill",
    "ident": "rifle_bolt_action",
    "name": "rifles (bolt-action)",
    "description": "Bolt action is a type of firearm action where the handling of cartridges into and out of the weapon's barrel chamber is operated by manually manipulating the bolt directly via a handle.",
    "tags": [ "combat_skill" ],
    "time_to_attack": { "min_time": 60, "base_time": 600, "time_reduction_per_level": 20 },
    "display_category": "display_ranged"
  },

@ZhilkinSerg ZhilkinSerg added [JSON] Changes (can be) made in JSON [C++] Changes (can be) made in C++. Previously named `Code` Mechanics: Effects / Skills / Stats Effects / Skills / Stats labels Dec 3, 2019
src/skill.h Show resolved Hide resolved
src/skill.h Outdated Show resolved Hide resolved
src/skill.h Outdated Show resolved Hide resolved
src/skill.h Outdated Show resolved Hide resolved
@I-am-Erk
Copy link
Member

I-am-Erk commented Dec 3, 2019

Loving this push to jsonize skill information

@ZhilkinSerg ZhilkinSerg force-pushed the jsonize-skill-time-to-attack branch 2 times, most recently from f55b0e6 to 1397402 Compare December 6, 2019 07:39
@ZhilkinSerg ZhilkinSerg force-pushed the jsonize-skill-time-to-attack branch 2 times, most recently from 4adec94 to fe3a96d Compare December 9, 2019 08:48
@kevingranade
Copy link
Member

This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there:

https://discourse.cataclysmdda.org/t/new-gun-classes/22972/2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` [JSON] Changes (can be) made in JSON Mechanics: Effects / Skills / Stats Effects / Skills / Stats
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants