diff --git a/GainStation13/code/obj/weapons/fatoray.dm b/GainStation13/code/obj/weapons/fatoray.dm new file mode 100644 index 00000000..c40ff086 --- /dev/null +++ b/GainStation13/code/obj/weapons/fatoray.dm @@ -0,0 +1,32 @@ +///The base fatoray +/obj/item/gun/energy/fatoray + name = "fatoray" + desc = "An energy gun that fattens up anyone it hits." + icon = 'GainStation13/icons/obj/fatoray.dmi' + icon_state = "fatoray" + ammo_type = list(/obj/item/ammo_casing/energy/fattening) + +/obj/item/ammo_casing/energy/fattening + name = "fattening weapon lens" + select_name = "fatten" + projectile_type = /obj/item/projectile/energy/fattening + +///The base projectile used by the fatoray +/obj/item/projectile/energy/fattening + name = "concentrated fat" + icon = 'GainStation13/icons/obj/fatoray.dmi' + icon_state = "ray" + ///How much fat is added to the target mob? + var/fat_added = 25 //Around 6.25 pounds per hit. + +/obj/item/projectile/energy/fattening/on_hit(atom/target, blocked) + . = ..() + + var/mob/living/carbon/gainer = target + if(!gainer) + return FALSE + + if(!gainer.adjust_fatness(fat_added, FATTENING_TYPE_WEAPON)) + return FALSE + + return TRUE diff --git a/GainStation13/icons/obj/fatoray.dmi b/GainStation13/icons/obj/fatoray.dmi index b8003bfa..16d4bfaf 100644 Binary files a/GainStation13/icons/obj/fatoray.dmi and b/GainStation13/icons/obj/fatoray.dmi differ diff --git a/tgstation.dme b/tgstation.dme index de346663..8c91b488 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -3324,6 +3324,7 @@ #include "GainStation13\code\modules\vending\gatocola.dm" #include "GainStation13\code\modules\vending\mealdor.dm" #include "GainStation13\code\obj\structure\scale.dm" +#include "GainStation13\code\obj\weapons\fatoray.dm" #include "hyperstation\code\__DEFINES\economy.dm" #include "hyperstation\code\__DEFINES\wendigo.dm" #include "hyperstation\code\controllers\subsystem\economy.dm"