Skip to content

Commit

Permalink
[NO GBP]Inversely scale mechanical favor with STANDARD_CELL_CHARGE. (t…
Browse files Browse the repository at this point in the history
…gstation#82801)

## About The Pull Request
Makes the mechanical sect cell sacrifice favor adjustment inversely
scale with STANDARD_CELL_CHARGE. This reduces it by a factor of 1,000.
## Why It's Good For The Game
So they don't get 1,000 times the favor as intended from a cell.
## Changelog
:cl:
fix: Fixes mechanical sect gaining 1,000 times the favor from a cell
sacrifice.
/:cl:
  • Loading branch information
Pickle-Coding authored Apr 22, 2024
1 parent 88813ff commit 2569062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/religion/religion_sects.dm
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,11 @@
if(!istype(power_cell))
return

if(power_cell.charge < 0.3 * STANDARD_CELL_CHARGE)
if(power_cell.charge() < 0.3 * STANDARD_CELL_CHARGE)
to_chat(chap, span_notice("[GLOB.deity] does not accept pity amounts of power."))
return

adjust_favor(round(power_cell.charge/300), chap)
adjust_favor(round(power_cell.charge() / (0.3 * STANDARD_CELL_CHARGE)), chap)
to_chat(chap, span_notice("You offer [power_cell]'s power to [GLOB.deity], pleasing them."))
qdel(power_cell)
return TRUE
Expand Down

0 comments on commit 2569062

Please sign in to comment.