Leyon Changes (#5200)

The Leyon Pistol has been changed to be closer to the original vision of it.
It is loaded via a special 10mm speedloader, however loading it takes some time.

Each gun (when ordered via cargo) will ship with a speedloader.
The speedloaders itself can not be ordered, but 10mm ammunition boxes can which can be used to restock the speedloaders or load the gun directly.

Reduces the price for the gun at the merchants from 1500 to 500 credits
And makes additional ammo boxes purchaseable

Also changes the path name of the 10mm ammo/mags/... to be consistent with the standard pathing for ammo
Adds additional messages if you can not load a gun with a single cartridge (currently it fails silently)
This commit is contained in:
Werner
2018-09-15 23:46:52 +02:00
committed by Erki
parent 530b9102db
commit 0feedab118
10 changed files with 101 additions and 49 deletions

View File

@@ -82,22 +82,30 @@
name = "magazine (.45 flash)"
ammo_type = /obj/item/ammo_casing/c45/flash
/obj/item/ammo_magazine/t40
/obj/item/ammo_magazine/mc10mm
name = "magazine (10mm)"
icon_state = "5.56"
mag_type = MAGAZINE
ammo_type = /obj/item/ammo_casing/t40
ammo_type = /obj/item/ammo_casing/c10mm
matter = list(DEFAULT_WALL_MATERIAL = 475) //metal costs are very roughly based around 1 .45 casing = 75 metal
caliber = "10mm"
max_ammo = 12
multiple_sprites = 1
/obj/item/ammo_magazine/t40/empty
/obj/item/ammo_magazine/mc10mm/empty
initial_ammo = 0
/obj/item/ammo_magazine/t40/rubber
/obj/item/ammo_magazine/mc10mm/rubber
name = "magazine (10mm rubber)"
ammo_type = /obj/item/ammo_casing/t40/rubber
ammo_type = /obj/item/ammo_casing/c10mm/rubber
/obj/item/ammo_magazine/mc10mm/leyon
name = "ammo clip (10mm)"
icon_state = "10mmclip"
mag_type = SPEEDLOADER
matter = list(DEFAULT_WALL_MATERIAL = 1800)
max_ammo = 5
multiple_sprites = 1
/obj/item/ammo_magazine/mc9mm
name = "magazine (9mm)"
@@ -168,7 +176,7 @@
mag_type = MAGAZINE
caliber = "10mm"
matter = list(DEFAULT_WALL_MATERIAL = 1500)
ammo_type = /obj/item/ammo_casing/t40
ammo_type = /obj/item/ammo_casing/c10mm
max_ammo = 20
multiple_sprites = 1
@@ -412,13 +420,4 @@
mag_type = MAGAZINE
caliber = "a762"
ammo_type = /obj/item/ammo_casing/a762
max_ammo = 1000
/obj/item/ammo_magazine/leyon
name = "ammo clip (10mm)"
icon_state = "10mmclip"
ammo_type = /obj/item/ammo_casing/t40
caliber = "10mm"
matter = list(DEFAULT_WALL_MATERIAL = 1800)
max_ammo = 5
multiple_sprites = 1
max_ammo = 1000

View File

@@ -61,6 +61,15 @@
desc = "A 9mm practice bullet casing."
projectile_type = /obj/item/projectile/bullet/pistol/practice
/obj/item/ammo_casing/c10mm
desc = "A 10mm bullet casing."
caliber = "10mm"
projectile_type = /obj/item/projectile/bullet/pistol
/obj/item/ammo_casing/c10mm/rubber
desc = "A 10mm rubber bullet casing."
projectile_type = /obj/item/projectile/bullet/pistol/rubber
/obj/item/ammo_casing/c45
desc = "A .45 bullet casing."
caliber = ".45"
@@ -80,15 +89,6 @@
desc = "A .45 flash shell casing."
projectile_type = /obj/item/projectile/energy/flash
/obj/item/ammo_casing/t40
desc = "A 10mm bullet casing."
caliber = "10mm"
projectile_type = /obj/item/projectile/bullet/pistol
/obj/item/ammo_casing/t40/rubber
desc = "A 10mm rubber bullet casing."
projectile_type = /obj/item/projectile/bullet/pistol/rubber
/obj/item/ammo_casing/a12mm
desc = "A 12mm bullet casing."
caliber = "12mm"