Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds mindbreaker toxin to hostile carp meat / zombie meat #5403

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions code/game/machinery/kitchen/gibber.dm
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
to_chat(user, SPAN_WARNING("You need a better grip to do that!"))
return

if(victim.abiotic(1))
if(victim.abiotic(1) && !iszombie(victim))
to_chat(user, SPAN_WARNING("Subject may not have abiotic items on."))
return

Expand All @@ -118,7 +118,8 @@
var/area/area = get_area(user)
message_admins("ALERT: [user] ([user.key]) is trying to gib [victim] ([victim.key]) in [area.name] [ADMIN_JMP(turf_ref)]</font>")
log_attack("[key_name(user)] tried to gib [victim] ([victim.key]) in [area.name]")
to_chat(user, SPAN_DANGER("Are you insane?!"))
if(!iszombie(victim))
to_chat(user, SPAN_DANGER("Are you insane?!"))
if(do_after(user, 30 SECONDS, INTERRUPT_ALL, BUSY_ICON_HOSTILE && grabbed && grabbed.grabbed_thing && !occupant))
user.visible_message(SPAN_DANGER("[user] stuffs [victim] into the gibber!"))
victim.forceMove(src)
Expand Down Expand Up @@ -169,8 +170,8 @@

var/totalslabs = 2

var/obj/item/reagent_container/food/snacks/meat/meat_template = /obj/item/reagent_container/food/snacks/meat/monkey
if(istype(occupant, /mob/living/carbon/xenomorph))
var/obj/item/reagent_container/food/snacks/meat_template = /obj/item/reagent_container/food/snacks/meat/monkey
if(isxeno(occupant))
var/mob/living/carbon/xenomorph/X = occupant
meat_template = /obj/item/reagent_container/food/snacks/meat/xenomeat
totalslabs = 1
Expand All @@ -181,18 +182,23 @@
totalslabs = 6
else
totalslabs += X.tier
else if(iscarp(occupant))
meat_template = /obj/item/reagent_container/food/snacks/carpmeat/space_carp
totalslabs = 3
else if(iszombie(occupant))
meat_template = /obj/item/reagent_container/food/snacks/meat/human/zombie
totalslabs = 4
else
if(istypestrict(occupant, /mob/living/carbon/human))
if(ishuman_strict(occupant))
meat_template = /obj/item/reagent_container/food/snacks/meat/human
totalslabs = 3

var/obj/item/reagent_container/food/snacks/meat/allmeat[totalslabs]
var/list/allmeat = list()
for(var/i in 1 to totalslabs)
var/obj/item/reagent_container/food/snacks/meat/newmeat
newmeat = new meat_template
var/obj/item/reagent_container/food/snacks/newmeat = new meat_template
newmeat.made_from_player = occupant.real_name + "-"
newmeat.name = newmeat.made_from_player + newmeat.name
allmeat[i] = newmeat
allmeat += newmeat

if(src.occupant.client) // Gibbed a cow with a client in it? log that shit
src.occupant.attack_log += "\[[time_stamp()]\] Was gibbed by <b>[key_name(user)]</b>"
Expand All @@ -206,7 +212,7 @@

addtimer(CALLBACK(src, PROC_REF(create_gibs), totalslabs, allmeat), gibtime)

/obj/structure/machinery/gibber/proc/create_gibs(totalslabs, list/obj/item/reagent_container/food/snacks/allmeat)
/obj/structure/machinery/gibber/proc/create_gibs(totalslabs, allmeat)
playsound(loc, 'sound/effects/splat.ogg', 25, 1)
operating = FALSE
for (var/i in 1 to totalslabs)
Expand Down
10 changes: 9 additions & 1 deletion code/game/objects/items/reagent_containers/food/snacks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -634,10 +634,18 @@

/obj/item/reagent_container/food/snacks/carpmeat
name = "carp fillet"
desc = "A fillet of spess carp meat"
desc = "A fillet of spess carp meat" // space?
icon_state = "fishfillet"
filling_color = "#FFDEFE"

/obj/item/reagent_container/food/snacks/carpmeat/space_carp
name = "space carp fillet"
desc = "A fillet of carp meat, it smells rather strange..."

/obj/item/reagent_container/food/snacks/carpmeat/space_carp/Initialize()
. = ..()
reagents.add_reagent("mindbreaker", 5)

/obj/item/reagent_container/food/snacks/carpmeat/Initialize()
. = ..()
reagents.add_reagent("fish", 3)
Expand Down
11 changes: 11 additions & 0 deletions code/game/objects/items/reagent_containers/food/snacks/meat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@
name = "human meat"
desc = "A slab of flesh for cannibals."

/obj/item/reagent_container/food/snacks/meat/human/zombie
name = "zombie meat"
desc = "A slab of zombie flesh. Looks rather tasty"
icon_state = "xenomeat" // it fits, let it slide.
filling_color = "#43DE18"

/obj/item/reagent_container/food/snacks/meat/human/zombie/Initialize()
. = ..()
reagents.add_reagent("blackgoo", 30)
reagents.add_reagent("mindbreaker", 5)

/obj/item/reagent_container/food/snacks/meat/monkey
//same as plain meat

Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/simple_animal/hostile/carp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
icon_gib = "carp_gib"
speak_chance = 0
turns_per_move = 5
meat_type = /obj/item/reagent_container/food/snacks/carpmeat
meat_type = /obj/item/reagent_container/food/snacks/carpmeat/space_carp
response_help = "pets the"
response_disarm = "gently pushes aside the"
response_harm = "hits the"
Expand Down
Loading