Allows icelance rifles to be equipped with bayonets (#5895)

This commit is contained in:
Alberyk
2019-01-04 21:17:09 -02:00
committed by Werner
parent 0e33a0e881
commit ae2cf5ebf5
3 changed files with 11 additions and 0 deletions

View File

@@ -94,6 +94,7 @@
return return
/obj/item/weapon/gun/energy/update_icon() /obj/item/weapon/gun/energy/update_icon()
..()
if(charge_meter && power_supply && power_supply.maxcharge) if(charge_meter && power_supply && power_supply.maxcharge)
var/ratio = power_supply.charge / power_supply.maxcharge var/ratio = power_supply.charge / power_supply.maxcharge

View File

@@ -19,6 +19,10 @@
firemodes = list() firemodes = list()
modifystate = null modifystate = null
can_bayonet = TRUE
knife_x_offset = 23
knife_y_offset = 13
/obj/item/weapon/gun/energy/rifle/icelance/attack_self(mob/living/user as mob) /obj/item/weapon/gun/energy/rifle/icelance/attack_self(mob/living/user as mob)
if(is_charging) if(is_charging)
user << "<span class='warning'>You are already charging \the [src].</span>" user << "<span class='warning'>You are already charging \the [src].</span>"

View File

@@ -0,0 +1,6 @@
author: Alberyk
delete-after: True
changes:
- rscadd: "You can now attach bayonets to the icelance rifle."