This commit is contained in:
Pinta
2023-02-11 01:52:50 -05:00
parent 7aa6674af4
commit bbf99b4c0d
3 changed files with 33 additions and 0 deletions
+32
View File
@@ -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
Binary file not shown.

Before

Width:  |  Height:  |  Size: 517 B

After

Width:  |  Height:  |  Size: 580 B

+1
View File
@@ -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"