mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-25 13:09:11 +01:00
rids of default immutable (#19608)
* rids of default immutable * why... * . * . * ugh * some mobs qdel on death * hmm na should be fine * l
This commit is contained in:
@@ -183,7 +183,7 @@
|
||||
if(purge)
|
||||
purge -= 1
|
||||
|
||||
/mob/living/simple_mob/
|
||||
/mob/living/simple_mob
|
||||
var/update_icon_timer
|
||||
|
||||
/mob/living/simple_mob/death(gibbed, deathmessage = "dies!")
|
||||
|
||||
@@ -242,7 +242,7 @@
|
||||
//A much more detailed version of the default /living implementation
|
||||
var/obj/belly/B = new /obj/belly(src)
|
||||
vore_selected = B
|
||||
B.immutable = 1
|
||||
B.immutable = TRUE
|
||||
B.affects_vore_sprites = TRUE
|
||||
B.name = vore_stomach_name ? vore_stomach_name : "stomach"
|
||||
B.desc = vore_stomach_flavor ? vore_stomach_flavor : "Your surroundings are warm, soft, and slimy. Makes sense, considering you're inside \the [name]."
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
/mob/living/simple_mob/shadekin/load_default_bellies()
|
||||
var/obj/belly/B = new /obj/belly(src)
|
||||
vore_selected = B
|
||||
B.immutable = 1
|
||||
B.immutable = TRUE
|
||||
B.affects_vore_sprites = TRUE
|
||||
B.name = vore_stomach_name ? vore_stomach_name : "stomach"
|
||||
B.desc = vore_stomach_flavor ? vore_stomach_flavor : "Your surroundings are warm, soft, and slimy. Makes sense, considering you're inside \the [name]."
|
||||
|
||||
@@ -18,14 +18,14 @@
|
||||
var/digest_brute = 2 // Brute damage per tick in digestion mode
|
||||
var/digest_burn = 3 // Burn damage per tick in digestion mode
|
||||
var/digest_tickrate = 3 // Modulus this of air controller tick number to iterate gurgles on
|
||||
var/immutable = 0 // Prevents this belly from being deleted
|
||||
var/escapable = 0 // Belly can be resisted out of at any time
|
||||
var/immutable = FALSE // Prevents this belly from being deleted
|
||||
var/escapable = FALSE // Belly can be resisted out of at any time
|
||||
var/escapetime = 60 SECONDS // Deciseconds, how long to escape this belly
|
||||
var/digestchance = 0 // % Chance of stomach beginning to digest if prey struggles
|
||||
var/absorbchance = 0 // % Chance of stomach beginning to absorb if prey struggles
|
||||
var/escapechance = 0 // % Chance of prey beginning to escape if prey struggles.
|
||||
var/transferchance = 0 // % Chance of prey being
|
||||
var/can_taste = 0 // If this belly prints the flavor of prey when it eats someone.
|
||||
var/can_taste = FALSE // If this belly prints the flavor of prey when it eats someone.
|
||||
var/bulge_size = 0.25 // The minimum size the prey has to be in order to show up on examine.
|
||||
var/shrink_grow_size = 1 // This horribly named variable determines the minimum/maximum size it will shrink/grow prey to.
|
||||
var/datum/belly/transferlocation = null // Location that the prey is released if they struggle and get dropped off.
|
||||
|
||||
@@ -298,7 +298,6 @@
|
||||
"digest_clone",
|
||||
"bellytemperature",
|
||||
"temperature_damage",
|
||||
"immutable",
|
||||
"can_taste",
|
||||
"escapable",
|
||||
"escapetime",
|
||||
@@ -488,7 +487,7 @@
|
||||
)
|
||||
|
||||
if (save_digest_mode == 1)
|
||||
return ..() + saving + list("digest_mode")
|
||||
saving += "digest_mode"
|
||||
|
||||
return ..() + saving
|
||||
|
||||
|
||||
@@ -63,7 +63,6 @@
|
||||
LAZYINITLIST(vore_organs)
|
||||
var/obj/belly/B = new /obj/belly(src)
|
||||
vore_selected = B
|
||||
B.immutable = TRUE
|
||||
B.name = "Stomach"
|
||||
B.desc = "It appears to be rather warm and wet. Makes sense, considering it's inside \the [name]."
|
||||
B.can_taste = TRUE
|
||||
@@ -287,10 +286,9 @@
|
||||
QDEL_LIST(vore_organs)
|
||||
for(var/entry in P.belly_prefs)
|
||||
list_to_object(entry,src)
|
||||
if(!vore_organs.len)
|
||||
if(!length(vore_organs))
|
||||
var/obj/belly/B = new /obj/belly(src)
|
||||
vore_selected = B
|
||||
B.immutable = TRUE
|
||||
B.name = "Stomach"
|
||||
B.desc = "It appears to be rather warm and wet. Makes sense, considering it's inside \the [name]."
|
||||
B.can_taste = TRUE
|
||||
|
||||
@@ -873,15 +873,15 @@
|
||||
failure_msg += "This is the destiantion for at least '[dest_for]' secondary belly transfers. Remove it as the destination from any bellies before deleting it. "
|
||||
break
|
||||
|
||||
if(host.vore_selected.contents.len)
|
||||
if(length(host.vore_selected.contents))
|
||||
failure_msg += "You cannot delete bellies with contents! " //These end with spaces, to be nice looking. Make sure you do the same.
|
||||
if(host.vore_selected.immutable)
|
||||
failure_msg += "This belly is marked as undeletable. "
|
||||
if(host.vore_organs.len == 1)
|
||||
if(length(host.vore_organs) == 1)
|
||||
failure_msg += "You must have at least one belly. "
|
||||
|
||||
if(failure_msg)
|
||||
tgui_alert_async(user,failure_msg,"Error!")
|
||||
tgui_alert_async(user, failure_msg, "Error!")
|
||||
return FALSE
|
||||
|
||||
if(host.soulgem?.linked_belly == host.vore_selected)
|
||||
|
||||
Reference in New Issue
Block a user