Skip to content

Commit

Permalink
Fixes some hunger issues (#5011)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trilbyspaceclone authored Feb 4, 2024
1 parent 5815bd8 commit 314813d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 2 additions & 4 deletions code/modules/genetics/mutations/bottomless_belly.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@
key = "MUTATION_BOTTOMLESS_BELLY"
desc = "This is what allows dogs to eat and eat and eat."
gain_text = "You have the munchies."
var/old_max_nutrition

/datum/genetics/mutation/bottomless_belly/onPlayerImplant()
if(!..())
return
var/mob/living/carbon/human/human_holder = container.holder
old_max_nutrition = human_holder.max_nutrition
human_holder.max_nutrition = human_holder.max_nutrition * 4
human_holder.max_nutrition += 1600

/datum/genetics/mutation/bottomless_belly/onPlayerRemove()
if(!..())
return
var/mob/living/carbon/human/human_holder = container.holder
human_holder.max_nutrition = old_max_nutrition
human_holder.max_nutrition -= 1600
2 changes: 2 additions & 0 deletions code/modules/mob/living/carbon/human/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@
sanity = new(src)

flash_mod = species.flash_mod

movement_hunger_factors *= species.hunger_factor
max_nutrition += species.nutrition_mod //Some races have different nutrition maxs

AddComponent(/datum/component/fabric)

Expand Down
1 change: 1 addition & 0 deletions code/modules/mob/living/carbon/human/species/species.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
var/always_blood = FALSE // Can we process reagents without blood?
var/always_ingest = FALSE // Initial blood volume.
var/hunger_factor = DEFAULT_HUNGER_FACTOR // Multiplier for hunger.
var/nutrition_mod = 0 // Flat addition to max nutrition (Base is 400)
var/taste_sensitivity = TASTE_NORMAL // How sensitive the species is to minute tastes.
var/show_ssd = "fast asleep"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
min_age = 18
max_age = 200 //Effectively ageless, but human history is only so long.
hunger_factor = 1.1
nutrition_mod = 100

dark_color = "#ffffff"
light_color = "#000000"
Expand Down Expand Up @@ -1127,6 +1128,8 @@
max_age = 200
taste_sensitivity = TASTE_SENSITIVE

nutrition_mod = 150 //Important for some perks

burn_mod = 1.2
brute_mod = 1.2
toxins_mod = 1 // fuck toxins_mod, we use a perk for this
Expand Down

0 comments on commit 314813d

Please sign in to comment.