mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
b0463d3c83
* spanish? * aaaagain * keep maptext * Update robot_items.dm * Update span_defines.dm * compiles * Update silicon_mob.dm * compile
35 lines
874 B
Plaintext
35 lines
874 B
Plaintext
/obj/item/gun/throw/piecannon
|
|
name = "pie cannon"
|
|
desc = "A projectile weapon that fires pies."
|
|
icon_state = "piecannon1"
|
|
inhand_icon_state = "piecannon"
|
|
w_class = WEIGHT_CLASS_HUGE
|
|
throw_speed = 2
|
|
throw_range = 3
|
|
|
|
clumsy_check = FALSE
|
|
valid_projectile_type = /obj/item/food/pie
|
|
max_capacity = 5
|
|
projectile_speed = 2
|
|
projectile_range = 30
|
|
|
|
/obj/item/gun/throw/piecannon/Initialize(mapload)
|
|
. = ..()
|
|
for(var/i in 1 to max_capacity)
|
|
var/obj/item/food/pie/P = new (src)
|
|
loaded_projectiles += P
|
|
process_chamber()
|
|
|
|
/obj/item/gun/throw/piecannon/notify_ammo_count()
|
|
return SPAN_NOTICE("[src] has [get_ammocount()] of [max_capacity] pies left.")
|
|
|
|
/obj/item/gun/throw/piecannon/update_icon_state()
|
|
if(to_launch)
|
|
icon_state = "piecannon1"
|
|
else
|
|
icon_state = "piecannon0"
|
|
|
|
/obj/item/gun/throw/piecannon/process_chamber()
|
|
..()
|
|
update_icon(UPDATE_ICON_STATE)
|