forked from shibao/cannery
use :rifle as default ammo type
This commit is contained in:
parent
2b81978adb
commit
abaccac9f0
@ -4,6 +4,7 @@
|
|||||||
- Fix additional shotgun fields not being exportable
|
- Fix additional shotgun fields not being exportable
|
||||||
- Fixes duplicate chamber size column for ammo types
|
- Fixes duplicate chamber size column for ammo types
|
||||||
- Hide bullet type field when editing/creating shotgun ammo types
|
- Hide bullet type field when editing/creating shotgun ammo types
|
||||||
|
- Fix ammo type creation not displaying all the necessary fields on first load
|
||||||
|
|
||||||
# v0.9.1
|
# v0.9.1
|
||||||
- Rename ammo type's "type" to "class" to avoid confusion
|
- Rename ammo type's "type" to "class" to avoid confusion
|
||||||
|
@ -52,7 +52,7 @@ defmodule Cannery.Ammo.Type do
|
|||||||
field :name, :string
|
field :name, :string
|
||||||
field :desc, :string
|
field :desc, :string
|
||||||
|
|
||||||
field :class, Ecto.Enum, values: [:rifle, :shotgun, :pistol]
|
field :class, Ecto.Enum, values: [:rifle, :shotgun, :pistol], default: :rifle
|
||||||
|
|
||||||
# common fields
|
# common fields
|
||||||
field :bullet_core, :string
|
field :bullet_core, :string
|
||||||
|
Loading…
Reference in New Issue
Block a user