#!/usr/bin/env bash
# just an alias for readability, "../t" = tes3cmd v0.40
tes3cmd="../t"
# dump records with header
$tes3cmd dump --raw-with-header "17_percent_faster_walking.esp"\
 --type GMST\
 --exact-id "fbaserunmultiplier"\
 --exact-id "fathleticsrunbonus"\
 --exact-id "fminwalkspeed"\
 --exact-id "fmaxwalkspeed"\
 "Morrowind.esm"
# fbaserunmultiplier | 1.75 -> 1.5 | decrease speed difference between walk and run
$tes3cmd modify --type GMST --exact-id "fbaserunmultiplier"               --run "\$R->set({t=>'FLTV', f=>'Float'}, '1.5')" "17_percent_faster_walking.esp"
# fathleticsrunbonus | 1 -> 0.85 | decrease athletics share in run speed equations
$tes3cmd modify --type GMST --exact-id "fathleticsrunbonus"               --run "\$R->set({t=>'FLTV', f=>'Float'}, '0.85')" "17_percent_faster_walking.esp"
# fminwalkspeed | 100 -> 117 | increase min walk speed
$tes3cmd modify --type GMST --exact-id "fminwalkspeed"                    --run "\$R->set({t=>'FLTV', f=>'Float'}, '117')" "17_percent_faster_walking.esp"
# fmaxwalkspeed | 200 -> 234 | increase max walk speed
$tes3cmd modify --type GMST --exact-id "fmaxwalkspeed"                    --run "\$R->set({t=>'FLTV', f=>'Float'}, '234')" "17_percent_faster_walking.esp"
