Skip to content

Commit

Permalink
Tames Some Exploits (#5099)
Browse files Browse the repository at this point in the history
* Removed anatomy from heirloom weapon

* Capped vig's reduction of environmental sanity

Having sanity above 72 will no longer allow you to gain sanity by staring at blood and crayon runes.
  • Loading branch information
Xaytan authored Mar 7, 2024
1 parent f206577 commit b644637
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/datums/perks/backgrounds.dm
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ This is NOT for racial-specific perks, but rather specifically for general backg
W.desc += " It has been inscribed with the \"[holder.name]\" family name."
W.name = "[W] of [holder.name]"
var/oddities = rand(2,4) //Will boost 2-4 random stats
var/list/stats = ALL_STATS
var/list/stats = ALL_STATS_FOR_LEVEL_UP
var/list/final_oddity = list()
for(var/i = 1 to oddities)
var/stat = pick(stats)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/sanity/sanity_mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GLOBAL_VAR_INIT(GLOBAL_INSIGHT_MOD, 1)
#define SANITY_VIEW_DAMAGE_MOD (0.4 * GLOB.GLOBAL_SANITY_MOD)

// Damage received from unpleasant stuff in view
#define SANITY_DAMAGE_VIEW(damage, vig, dist) ((damage) * SANITY_VIEW_DAMAGE_MOD * (1.2 - (vig) / STAT_LEVEL_MAX) * (1 - (dist)/15))
#define SANITY_DAMAGE_VIEW(damage, vig, dist) ((damage) * SANITY_VIEW_DAMAGE_MOD * max((1.2 - (vig) / STAT_LEVEL_MAX), 0.05) * (1 - (dist)/15))

// Damage received from body damage
#define SANITY_DAMAGE_HURT(damage, vig) (min((damage) / 5 * SANITY_DAMAGE_MOD * (1.2 - (vig) / STAT_LEVEL_MAX), 60))
Expand Down

0 comments on commit b644637

Please sign in to comment.