BGforgeNet / Fallout2_Restoration_Project

Fallout 2 Restoration Project, updated
https://forums.bgforge.net/viewforum.php?f=39
583 stars 38 forks source link

kcsajag.ssl & cult of personality #173

Closed MarbledModulator closed 1 year ago

MarbledModulator commented 1 year ago

What happened

I was looking through the code to better understand how fallout 2 engine work and think I stumbled across an error.

Lines 47-49 of kcsajag.ssl say

define rep_check_pass ( \

(TOWN_REPUTATION > 5) or \ (TOWN_REPUTATION < -5 and dude_perk(PERK_cult_of_personality)) \

What you expected to happen

I don't think that bit of code makes sense. I think (TOWN_REPUTATION < -5 and dude_perk(PERK_cult_of_personality)) \ was intended to be (TOWN_REPUTATION > -5 and dude_perk(PERK_cult_of_personality)) \

However I searched for PERK_cult_of_personality in the rest of the repository to understand how it is normally used and suggest the following resolution instead.

define rep_check_pass ( \

(TOWN_REPUTATION > 5) or \ (dude_perk(PERK_cult_of_personality)) \

This matches how PERK_cult_of_personality is used in all of the other .SSL's I looked at (I only looked at a dozen or so though) and matches the in-game description of the perk. "Your reputation is always positive to people."

Screenshot

N/A. Found while looking at the code on github.

Savegame

N/A. Found while looking at the code on github.

burner1024 commented 1 year ago

This check is good.