Skip to content

Commit

Permalink
tweak: vampires can't eat simple mobs; reduced nutrition from mobs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ksaikok46 authored Jan 14, 2024
1 parent 7551ab5 commit 1dbd404
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 17 deletions.
1 change: 0 additions & 1 deletion code/modules/mob/living/living_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
var/stam_regen_start_time = 0 //used to halt stamina regen temporarily
var/stam_regen_start_modifier = 1 //Modifier of time until regeneration starts
var/stam_paralyzed = FALSE //knocks you down
var/blood_nutrients = 10 //nutrition for devour this creature by vampire

///if this exists AND the normal sprite is bigger than 32x32, this is the replacement icon state (because health doll size limitations). the icon will always be screen_gen.dmi
var/health_doll_icon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
speak_chance = 0
maxHealth = 2
health = 2
blood_nutrients = 5
harm_intent_damage = 1
friendly = "nudges"
density = 0
Expand Down
1 change: 0 additions & 1 deletion code/modules/mob/living/simple_animal/friendly/crab.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
emote_see = list("clacks")
death_sound = 'sound/creatures/crack_death2.ogg'
speak_chance = 1
blood_nutrients = 30
turns_per_move = 5
butcher_results = list(/obj/item/reagent_containers/food/snacks/meat = 1)
response_help = "pets"
Expand Down
1 change: 0 additions & 1 deletion code/modules/mob/living/simple_animal/friendly/diona.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

maxHealth = 50
health = 50
blood_nutrients = 30
voice_name = "diona nymph"
speak_emote = list("chirrups")
emote_hear = list("chirrups")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@
death_sound = 'sound/creatures/mouse_squeak.ogg'
health = 3
maxHealth = 3
blood_nutrients = 20
ventcrawler = 2
var/amount_grown = 0
pass_flags = PASSTABLE | PASSGRILLE | PASSMOB
Expand Down Expand Up @@ -257,7 +256,6 @@ GLOBAL_VAR_INIT(chicken_count, 0)
talk_sound = list('sound/creatures/chicken_talk.ogg')
health = 15
maxHealth = 15
blood_nutrients = 30
ventcrawler = 2
var/eggsleft = 0
var/eggsFertile = TRUE
Expand Down
3 changes: 0 additions & 3 deletions code/modules/mob/living/simple_animal/friendly/mouse.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
see_in_dark = 6
maxHealth = 5
health = 5
blood_nutrients = 20
blood_volume = BLOOD_VOLUME_SURVIVE
butcher_results = list(/obj/item/reagent_containers/food/snacks/meat/mouse = 1)
response_help = "pets"
Expand Down Expand Up @@ -200,7 +199,6 @@
/mob/living/simple_animal/mouse/blobinfected
maxHealth = 100
health = 100
blood_nutrients = 500
atmos_requirements = list("min_oxy" = 0, "max_oxy" = 0, "min_tox" = 0, "max_tox" = 0, "min_co2" = 0, "max_co2" = 0, "min_n2" = 0, "max_n2" = 0)
minbodytemp = 0
gold_core_spawnable = NO_SPAWN
Expand Down Expand Up @@ -287,7 +285,6 @@
mouse_color = null
maxHealth = 15
health = 15
blood_nutrients = 30
mob_size = MOB_SIZE_SMALL
butcher_results = list(/obj/item/reagent_containers/food/snacks/meat/mouse = 2)

Expand Down
1 change: 0 additions & 1 deletion code/modules/mob/living/simple_animal/parrot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
emote_see = list("flutters its wings")

speak_chance = 1 //1% (1 in 100) chance every tick; So about once per 150 seconds, assuming an average tick is 1.5s
blood_nutrients = 30
turns_per_move = 5
butcher_results = list(/obj/item/reagent_containers/food/snacks/cracker = 3)

Expand Down
1 change: 0 additions & 1 deletion code/modules/mob/living/simple_animal/tribbles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ GLOBAL_VAR_INIT(totaltribbles, 0) //global variable so it updates for all trib
turns_per_move = 5
maxHealth = 10
health = 10
blood_nutrients = 30
butcher_results = list(/obj/item/stack/sheet/fur = 1)
response_help = "pets"
response_disarm = "gently pushes aside"
Expand Down
9 changes: 3 additions & 6 deletions code/modules/mob/mob_grab.dm
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,7 @@
if(affecting.mind)
add_attack_logs(attacker, affecting, "Devoured")

if(isvampire(user))
user.adjust_nutrition(affecting.blood_nutrients)
else
user.adjust_nutrition(10 * affecting.health)
user.adjust_nutrition(2 * affecting.health)

for(var/datum/disease/virus/V in affecting.diseases)
if(V.spread_flags > NON_CONTAGIOUS)
Expand All @@ -462,8 +459,8 @@
var/mob/living/carbon/human/H = attacker
var/datum/antagonist/vampire/vamp = H.mind?.has_antag_datum(/datum/antagonist/vampire)
var/datum/antagonist/goon_vampire/g_vamp = H.mind?.has_antag_datum(/datum/antagonist/goon_vampire)
if(ishuman(H) && (vamp || g_vamp) && istype(prey, /mob/living/simple_animal/mouse)) //vampires can eat mice despite race
return 1
if(ishuman(H) && (vamp || g_vamp) && istype(prey, /mob/living/simple_animal)) //vampires can't eat simple mobs despite race
return FALSE
if(ishuman(H) && is_type_in_list(prey, H.dna.species.allowed_consumed_mobs)) //species eating of other mobs
return 1

Expand Down

0 comments on commit 1dbd404

Please sign in to comment.