Skip to content

Commit

Permalink
Adds gunmod_data documentation (#33352)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rod995 authored and ZhilkinSerg committed Aug 20, 2019
1 parent 96a567e commit 4fc3866
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion doc/JSON_INFO.md
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ Guns can be defined like this:
```
Alternately, every item (book, tool, armor, even food) can be used as gun if it has gun_data:
```json
"type" : "TOOL", // Or any other item type
"type": "TOOL", // Or any other item type
... // same entries as for the type (e.g. same entries as for any tool),
"gun_data" : { // additionally the same gun data like above
"skill": ...,
Expand Down Expand Up @@ -1147,6 +1147,16 @@ Gun mods can be defined like this:
"reload_modifier": -10, // Optional field increasing or decreasing base gun reload time in percent
"min_str_required_mod": 14, // Optional field increasing or decreasing minimum strength required to use gun
```
Alternately, every item (book, tool, armor, even food) can be used as a gunmod if it has gunmod_data:
```
"type": "TOOL", // Or any other item type
... // same entries as for the type (e.g. same entries as for any tool),
"gunmod_data" : {
"location": ...,
"mod_targets": ...,
...
}
```

### Batteries
```C++
Expand Down

0 comments on commit 4fc3866

Please sign in to comment.