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

Update type of 22_casing_new #38172

Merged
merged 2 commits into from
Feb 20, 2020

Conversation

Kilvoctu
Copy link
Contributor

Summary

SUMMARY: Bugfixes "Update type of 22_casing_new"

Purpose of change

Fixes a migration error with Generic Guns.
Any world which attempts to load with Generic Guns active will get:
ERROR : src/item_factory.cpp:629 [void Item_factory::finalize_item_blacklist()] Replacement item pistol_tiny_casing for migrated ammo 22_casing_new is not ammo.

Describe the solution

Change the 22_casing_new from type of ammo to generic, then move it into casing.json with the other casings.

Describe alternatives you've considered

None

Testing

Loaded into world with Generic Guns active.

Additional context

This error was observed when compiling with commits up to the merge of #37746.

Remove fields relating to ammo. tested changes by disassembling .22 ammo into this casing, then crafting reloaded ammo
@ZhilkinSerg ZhilkinSerg added [JSON] Changes (can be) made in JSON Items: Ammo / Guns Ammunition for all kinds of weapons and these weapons themselves labels Feb 20, 2020
@ZhilkinSerg ZhilkinSerg merged commit 24a32c0 into CleverRaven:master Feb 20, 2020
@Kilvoctu Kilvoctu deleted the 22casingnew-typefix branch February 20, 2020 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Items: Ammo / Guns Ammunition for all kinds of weapons and these weapons themselves [JSON] Changes (can be) made in JSON
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants