mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[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:
@@ -423,13 +423,13 @@ emp_act
|
||||
|
||||
if(istype(AM,/obj/))
|
||||
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
|
||||
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.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(canmove && !restrained() && !src.is_incorporeal()) // CHOMPADD - No hands for the phased ones.
|
||||
if(isturf(O.loc))
|
||||
|
||||
@@ -206,7 +206,7 @@
|
||||
/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/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
|
||||
name = "Expensive Taste"
|
||||
|
||||
@@ -257,13 +257,13 @@
|
||||
/mob/living/hitby(atom/movable/AM as mob|obj,var/speed = THROWFORCE_SPEED_DIVISOR)//Standardization and logging -Sieve
|
||||
if(istype(AM,/obj/))
|
||||
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
|
||||
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.forceMove(vore_selected)
|
||||
return //CHOMPADD End
|
||||
return
|
||||
var/dtype = O.damtype
|
||||
var/throw_damage = O.throwforce*(speed/THROWFORCE_SPEED_DIVISOR)
|
||||
|
||||
|
||||
@@ -661,8 +661,6 @@ VIRGO3C_TURF_CREATE(/turf/simulated/floor/tiled/asteroid_steel/outdoors)
|
||||
|
||||
|
||||
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
/turf/simulated/open/virgo3c
|
||||
VIRGO3C_SET_ATMOS
|
||||
|
||||
@@ -685,7 +683,6 @@ VIRGO3C_TURF_CREATE(/turf/simulated/floor/tiled/asteroid_steel/outdoors)
|
||||
VIRGO3C_SET_ATMOS
|
||||
outdoors = 0
|
||||
|
||||
>>>>>>> 723789a563... Small fix for planetary lighting (#15783)
|
||||
/turf/simulated/floor/outdoors/grass/virgo3c
|
||||
VIRGO3C_SET_ATMOS
|
||||
|
||||
|
||||
@@ -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/mute_entry = FALSE //Toggleable vorgan entry logs.
|
||||
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/passtable_reset // For crawling
|
||||
@@ -313,13 +312,6 @@
|
||||
mute_entry = !mute_entry
|
||||
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()
|
||||
set name = "Restrict Trash Eater"
|
||||
set category = "Abilities"
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
'sound/effects/mob_effects/xenochimera/regen_3.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
|
||||
@@ -973,6 +974,13 @@
|
||||
to_chat(src, "<span class='notice'>This snack is too powerful to go down that easily.</span>") //CHOMPEdit
|
||||
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.
|
||||
set name = "Eat Minerals"
|
||||
set category = "Abilities"
|
||||
|
||||
Reference in New Issue
Block a user