Skip to content

Commit

Permalink
Vivification fixes plus smaller stuff. (#4937)
Browse files Browse the repository at this point in the history
* Vivification fixes

Fixes players not gaining NSA apon gaining Vivification finally FINALLY blanacing the pain that was chem nerfing

* Update jobs.dm

* Update backgrounds.dm

fixes the desc on nihilist saying its 10% positive breakdown and 30% neg breakdown. In reality its 30 and 20
  • Loading branch information
benj8560 authored Jan 15, 2024
1 parent 5304bb5 commit e7fef4b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion code/controllers/subsystems/jobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ SUBSYSTEM_DEF(job)
H.stats.changeStat(STAT_VIV, H.client.prefs.VIVMOD)
H.stats.changeStat(STAT_ANA, H.client.prefs.ANAMOD)
H.give_health_via_stats()
H.metabolism_effects.calculate_nsa() //update NSA incase we have any viv round start
// This could be cleaner and better, however it should apply your stats once on spawn properly if here. If anyone wants to do this in a cleaner manner be my guest.

BITSET(H.hud_updateflag, ID_HUD)
Expand Down Expand Up @@ -750,4 +751,4 @@ SUBSYSTEM_DEF(job)
//We cache it here rather than on the 'get' so that only changes that are saved get recorded.
//The cache is also a copy of the original, so that people don't get the smart idea to hold the datum and update it elsewhere.
if(playtime_cache[ckey] == null) playtime_cache[ckey] = list() // This should never be true, but I don't trust you lot to make sure you read before writing.
playtime_cache[ckey][job_key] = new /datum/playtime(datum)
playtime_cache[ckey][job_key] = new /datum/playtime(datum)
2 changes: 1 addition & 1 deletion code/datums/perks/backgrounds.dm
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ This is NOT for racial-specific perks, but rather specifically for general backg
/datum/perk/nihilist
name = "Nihilist"
desc = "You simply ran out of fucks to give at some point in your life. \
This increases chance of positive breakdowns by 10% and negative breakdowns by 20%. Seeing someone die has a random effect on you: \
This increases chance of positive breakdowns by 30% and negative breakdowns by 20%. Seeing someone die has a random effect on you: \
sometimes you won’t take any sanity loss and you can even gain back sanity, or get a boost to your cognition."
icon_state = "eye" //https://game-icons.net/1x1/lorc/tear-tracks.html

Expand Down
1 change: 1 addition & 0 deletions code/modules/sanity/sanity_mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ GLOBAL_VAR_INIT(GLOBAL_INSIGHT_MOD, 1)
owner.stats.changeStat_withcap(stat, stat_change[stat])

owner.pick_individual_objective()
owner.metabolism_effects.calculate_nsa() //Updates NSA limit incase we gain any viv on level up

/datum/sanity/proc/onDamage(amount)
changeLevel(-SANITY_DAMAGE_HURT(amount, owner.stats.getStat(STAT_VIG)))
Expand Down

0 comments on commit e7fef4b

Please sign in to comment.