mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-18 03:21:30 +01:00
fat gun
This commit is contained in:
@@ -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 |
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user