mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 16:44:33 +01:00
Kentucky Fried Vox (#13114)
* is finger lickin goods yaya * is code improvements yaya * is updates yaya
This commit is contained in:
@@ -243,6 +243,14 @@
|
||||
trash = null
|
||||
list_reagents = list("protein" = 6, "vitamin" = 2)
|
||||
tastes = list("meat" = 1)
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/fried_vox
|
||||
name = "Kentucky Fried Vox"
|
||||
desc = "Bucket of voxxy, yaya!"
|
||||
icon_state = "fried_vox"
|
||||
trash = /obj/item/trash/fried_vox
|
||||
list_reagents = list("nutriment" = 3, "protein" = 5)
|
||||
tastes = list("quills" = 1, "the shoal" = 1)
|
||||
|
||||
//////////////////////
|
||||
// Cubes //
|
||||
|
||||
@@ -43,6 +43,8 @@
|
||||
return 1
|
||||
if(istype(check, /obj/item/grab))
|
||||
return special_attack(check, user)
|
||||
if(has_specials && checkSpecials(check))
|
||||
return TRUE
|
||||
to_chat(user, "<span class ='notice'>You can only process food!</span>")
|
||||
return 0
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
return 0
|
||||
for(var/Type in subtypesof(/datum/deepfryer_special))
|
||||
var/datum/deepfryer_special/P = new Type()
|
||||
if(!istype(I, P.input))
|
||||
if(!P.validate(I))
|
||||
continue
|
||||
return P
|
||||
return 0
|
||||
@@ -83,7 +83,6 @@
|
||||
return 0
|
||||
new recipe.output(get_turf(src))
|
||||
|
||||
|
||||
//////////////////////////////////
|
||||
// Deepfryer Special //
|
||||
// Interaction Datums //
|
||||
@@ -93,6 +92,9 @@
|
||||
var/input //Thing that goes in
|
||||
var/output //Thing that comes out
|
||||
|
||||
/datum/deepfryer_special/proc/validate(obj/item/I)
|
||||
return istype(I, input)
|
||||
|
||||
/datum/deepfryer_special/shrimp
|
||||
input = /obj/item/reagent_containers/food/snacks/shrimp
|
||||
output = /obj/item/reagent_containers/food/snacks/fried_shrimp
|
||||
@@ -123,4 +125,14 @@
|
||||
|
||||
/datum/deepfryer_special/carrotfries
|
||||
input = /obj/item/reagent_containers/food/snacks/grown/carrot/wedges
|
||||
output = /obj/item/reagent_containers/food/snacks/carrotfries
|
||||
output = /obj/item/reagent_containers/food/snacks/carrotfries
|
||||
|
||||
/datum/deepfryer_special/fried_vox
|
||||
input = /obj/item/organ/external
|
||||
output = /obj/item/reagent_containers/food/snacks/fried_vox
|
||||
|
||||
/datum/deepfryer_special/fried_vox/validate(var/obj/item/I)
|
||||
if(!..())
|
||||
return FALSE
|
||||
var/obj/item/organ/external/E = I
|
||||
return istype(E.dna.species, /datum/species/vox)
|
||||
Reference in New Issue
Block a user