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

Randomize amount of ammo in gun spawns and other small fixes for zombie soldiers loot spawn #30316

Merged
merged 7 commits into from
May 8, 2019
Merged

Randomize amount of ammo in gun spawns and other small fixes for zombie soldiers loot spawn #30316

merged 7 commits into from
May 8, 2019

Conversation

Night-Pryanik
Copy link
Contributor

@Night-Pryanik Night-Pryanik commented May 8, 2019

Summary

SUMMARY: Balance "Randomize amount of ammo in gun spawns."

Purpose of change

Made it so guns spawn not only full or empty, but with random number of bullets in them.
Initially I just wanted to randomize only amount of bullets in zombie soldier's guns, but then I noticed other issues like guaranteed spawn of cash cards or fixed amount of charges in matchboxes. So I decided to fix these too while I'm here.

Describe the solution

  • Added "charges-min": 0, "charges-max": XX" fields for almost every type of gun in guns.json, where XX is the maximum number of bullets allowed for standard magazine for the gun in question.
  • Also made a small balance change: I capped maximum number of bullets allowed for spawn in machine guns to 100 even if they could contain 500.
  • Randomized number of matches in matchboxes, charges in gas masks, rolling paper and rolling tobacco.
  • Decreased chance to spawn cash cards on zombie soldiers and zombie pilots loot from guaranteed to 10%.

@Night-Pryanik Night-Pryanik added Game: Balance Balancing of (existing) in-game features. [JSON] Changes (can be) made in JSON Spawn Creatures, items, vehicles, locations appearing on map Items / Item Actions / Item Qualities Items and how they work and interact labels May 8, 2019
@ZhilkinSerg ZhilkinSerg merged commit 22c5390 into CleverRaven:master May 8, 2019
@Night-Pryanik Night-Pryanik deleted the randomize-amount-of-ammo-in-gun-spawns branch May 8, 2019 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Game: Balance Balancing of (existing) in-game features. Items / Item Actions / Item Qualities Items and how they work and interact [JSON] Changes (can be) made in JSON Spawn Creatures, items, vehicles, locations appearing on map
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants