Wolf's Planetary Studies seem to be bugged. (other studies as well if they use the same structure, i haven't looked) Finishing the course, final screen claimed the MC (with intelligence of 39) would gain +4 intelligence, +3 science and +8 academics... but the actual gains were significantly higher: +9 intelligence, +5 science and +12 academics.
The bug is caused by how the relevant code is structured:
Code:
<<if $masterint lte 39>>
<<set $masterint+=5>>
<<set $tech+=2>>
<<set $aca+=4>>
<<set _first to 5>>
<<set _sec to 2>>
<<set _third to 4>>
<</if>>
<<if $masterint gte 40 and $masterint lte 59>>
<<set $masterint+=4>>
<<set $tech+=3>>
<<set $aca+=8>>
<<set _first to 4>>
<<set _sec to 3>>
<<set _third to 8>>
<</if>>
<<if $masterint gte 60>>
<<set $masterint+=6>>
<<set $tech+=5>>
<<set $aca+=10>>
<<set _first to 6>>
<<set _sec to 5>>
<<set _third to 10>>
<</if>>
Because character's attributes are modified immediately, instead of getting added after this check is done, it is possible for the MC to get two bonuses instead of just one, if initial intelligence value was close to the threshold, and get pushed past it when the bonus is added.
To fix it, the blocks which adjust character attributes should be removed, and replaced with single block at the end:
Code:
<<set $masterint+=_first>>
<<set $tech+=_sec>>
<<set $aca+=_third>>
(alternatively use
elseif
for subsequent checks, but this way you'll have some reduntant code that could be pruned)
There's another, minor bug there as well -- the int gains for first and second reward levels appear to be swapped.