[MIRROR] Ports trash throw vore from Chomp (#8109)

Co-authored-by: SatinIsle <98125273+SatinIsle@users.noreply.github.com>
Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
CHOMPStation2
2024-03-31 04:43:00 -07:00
committed by GitHub
parent d4b706b93c
commit e2e1b525f4
6 changed files with 15 additions and 18 deletions

View File

@@ -423,13 +423,13 @@ emp_act
if(istype(AM,/obj/)) if(istype(AM,/obj/))
var/obj/O = AM var/obj/O = AM
if(stat != DEAD && istype(O,/obj/item) && trash_catching && vore_selected) //CHOMPADD Start if(stat != DEAD && istype(O,/obj/item) && trash_catching && vore_selected) //Ported from chompstation
var/obj/item/I = O var/obj/item/I = O
if(adminbus_trash || is_type_in_list(I,edible_trash) && I.trash_eatable && !is_type_in_list(I,item_vore_blacklist)) if(adminbus_trash || is_type_in_list(I,edible_trash) && I.trash_eatable && !is_type_in_list(I,item_vore_blacklist))
visible_message("<span class='warning'>[I] is thrown directly into [src]'s [lowertext(vore_selected.name)]!</span>") visible_message("<span class='vwarning'>[I] is thrown directly into [src]'s [lowertext(vore_selected.name)]!</span>") //CHOMPEdit
I.throwing = 0 I.throwing = 0
I.forceMove(vore_selected) I.forceMove(vore_selected)
return //CHOMPADD End return
if(in_throw_mode && speed <= THROWFORCE_SPEED_DIVISOR) //empty active hand and we're in throw mode if(in_throw_mode && speed <= THROWFORCE_SPEED_DIVISOR) //empty active hand and we're in throw mode
if(canmove && !restrained() && !src.is_incorporeal()) // CHOMPADD - No hands for the phased ones. if(canmove && !restrained() && !src.is_incorporeal()) // CHOMPADD - No hands for the phased ones.
if(isturf(O.loc)) if(isturf(O.loc))

View File

@@ -206,7 +206,7 @@
/datum/trait/neutral/trashcan/apply(var/datum/species/S,var/mob/living/carbon/human/H) /datum/trait/neutral/trashcan/apply(var/datum/species/S,var/mob/living/carbon/human/H)
..() ..()
add_verb(H,/mob/living/proc/eat_trash) //CHOMPEdit TGPanel add_verb(H,/mob/living/proc/eat_trash) //CHOMPEdit TGPanel
add_verb(H,/mob/living/proc/toggle_trash_catching) //CHOMPEdit TGPanel //CHOMPEdit add_verb(H,/mob/living/proc/toggle_trash_catching) //Ported from chompstation //CHOMPEdit TGPanel
/datum/trait/neutral/gem_eater /datum/trait/neutral/gem_eater
name = "Expensive Taste" name = "Expensive Taste"

View File

@@ -257,13 +257,13 @@
/mob/living/hitby(atom/movable/AM as mob|obj,var/speed = THROWFORCE_SPEED_DIVISOR)//Standardization and logging -Sieve /mob/living/hitby(atom/movable/AM as mob|obj,var/speed = THROWFORCE_SPEED_DIVISOR)//Standardization and logging -Sieve
if(istype(AM,/obj/)) if(istype(AM,/obj/))
var/obj/O = AM var/obj/O = AM
if(stat != DEAD && istype(O,/obj/item) && trash_catching && vore_selected) //CHOMPADD Start if(stat != DEAD && istype(O,/obj/item) && trash_catching && vore_selected) //ported from chompstation
var/obj/item/I = O var/obj/item/I = O
if(adminbus_trash || is_type_in_list(I,edible_trash) && I.trash_eatable && !is_type_in_list(I,item_vore_blacklist)) if(adminbus_trash || is_type_in_list(I,edible_trash) && I.trash_eatable && !is_type_in_list(I,item_vore_blacklist))
visible_message("<span class='warning'>[I] is thrown directly into [src]'s [lowertext(vore_selected.name)]!</span>") visible_message("<span class='vwarning'>[I] is thrown directly into [src]'s [lowertext(vore_selected.name)]!</span>") //CHOMPEdit
I.throwing = 0 I.throwing = 0
I.forceMove(vore_selected) I.forceMove(vore_selected)
return //CHOMPADD End return
var/dtype = O.damtype var/dtype = O.damtype
var/throw_damage = O.throwforce*(speed/THROWFORCE_SPEED_DIVISOR) var/throw_damage = O.throwforce*(speed/THROWFORCE_SPEED_DIVISOR)

View File

@@ -661,8 +661,6 @@ VIRGO3C_TURF_CREATE(/turf/simulated/floor/tiled/asteroid_steel/outdoors)
<<<<<<< HEAD
=======
/turf/simulated/open/virgo3c /turf/simulated/open/virgo3c
VIRGO3C_SET_ATMOS VIRGO3C_SET_ATMOS
@@ -685,7 +683,6 @@ VIRGO3C_TURF_CREATE(/turf/simulated/floor/tiled/asteroid_steel/outdoors)
VIRGO3C_SET_ATMOS VIRGO3C_SET_ATMOS
outdoors = 0 outdoors = 0
>>>>>>> 723789a563... Small fix for planetary lighting (#15783)
/turf/simulated/floor/outdoors/grass/virgo3c /turf/simulated/floor/outdoors/grass/virgo3c
VIRGO3C_SET_ATMOS VIRGO3C_SET_ATMOS

View File

@@ -6,7 +6,6 @@
var/vore_footstep_volume_cooldown = 0 //goes up each time a step isnt heard, and will proc update of list of viable bellies to determine the most filled and loudest one to base audio on. var/vore_footstep_volume_cooldown = 0 //goes up each time a step isnt heard, and will proc update of list of viable bellies to determine the most filled and loudest one to base audio on.
var/mute_entry = FALSE //Toggleable vorgan entry logs. var/mute_entry = FALSE //Toggleable vorgan entry logs.
var/parasitic = FALSE //Digestion immunity and nutrition leeching variable var/parasitic = FALSE //Digestion immunity and nutrition leeching variable
var/trash_catching = FALSE //Toggle for trash throw vore.
var/liquidbelly_visuals = TRUE //Toggle for liquidbelly level visuals. var/liquidbelly_visuals = TRUE //Toggle for liquidbelly level visuals.
var/passtable_reset // For crawling var/passtable_reset // For crawling
@@ -313,13 +312,6 @@
mute_entry = !mute_entry mute_entry = !mute_entry
to_chat(src, "<span class='vwarning'>Entrance logs [mute_entry ? "disabled" : "enabled"].</span>") to_chat(src, "<span class='vwarning'>Entrance logs [mute_entry ? "disabled" : "enabled"].</span>")
/mob/living/proc/toggle_trash_catching()
set name = "Toggle Trash Catching"
set category = "Abilities"
set desc = "Toggle Trash Eater throw vore abilities."
trash_catching = !trash_catching
to_chat(src, "<span class='vwarning'>Trash catching [trash_catching ? "enabled" : "disabled"].</span>")
/mob/living/proc/restrict_trasheater() /mob/living/proc/restrict_trasheater()
set name = "Restrict Trash Eater" set name = "Restrict Trash Eater"
set category = "Abilities" set category = "Abilities"

View File

@@ -34,6 +34,7 @@
'sound/effects/mob_effects/xenochimera/regen_3.ogg', 'sound/effects/mob_effects/xenochimera/regen_3.ogg',
'sound/effects/mob_effects/xenochimera/regen_5.ogg' 'sound/effects/mob_effects/xenochimera/regen_5.ogg'
) )
var/trash_catching = FALSE //Toggle for trash throw vore from chompstation
// //
// Hook for generic creation of stuff on new creatures // Hook for generic creation of stuff on new creatures
@@ -973,6 +974,13 @@
to_chat(src, "<span class='notice'>This snack is too powerful to go down that easily.</span>") //CHOMPEdit to_chat(src, "<span class='notice'>This snack is too powerful to go down that easily.</span>") //CHOMPEdit
return return
/mob/living/proc/toggle_trash_catching() //Ported from chompstation
set name = "Toggle Trash Catching"
set category = "Abilities"
set desc = "Toggle Trash Eater throw vore abilities."
trash_catching = !trash_catching
to_chat(src, "<span class='vwarning'>Trash catching [trash_catching ? "enabled" : "disabled"].</span>") //CHOMPEdit
/mob/living/proc/eat_minerals() //Actual eating abstracted so the user isn't given a prompt due to an argument in this verb. /mob/living/proc/eat_minerals() //Actual eating abstracted so the user isn't given a prompt due to an argument in this verb.
set name = "Eat Minerals" set name = "Eat Minerals"
set category = "Abilities" set category = "Abilities"