mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Added DisplayNPCExtraInfo option to ddraw.ini for previous commit.
This commit is contained in:
@@ -629,6 +629,9 @@ NumbersInDialogue=0
|
||||
;Set to 1 to use Fallout's normal text font instead of DOS-like font on the world map
|
||||
WorldMapFontPatch=0
|
||||
|
||||
;Set to 1 to display party member's current level/AC/addict flag on the combat control panel
|
||||
DisplayNPCExtraInfo=0
|
||||
|
||||
;Set to 1 to prevent the inventory/loot/automap interfaces from being placed on top of other script-created windows
|
||||
InterfaceDontMoveOnTop=0
|
||||
|
||||
|
||||
@@ -421,10 +421,14 @@ void PartyControlInit() {
|
||||
dlogr(" Disabled.", DL_INIT);
|
||||
|
||||
// display party member's current level & AC & addict flag
|
||||
HookCall(0x44926F, gdControlUpdateInfo_hook);
|
||||
GetPrivateProfileString("sfall", "PartyLvlMsg", "Lvl:", levelMsg, 12, translationIni);
|
||||
GetPrivateProfileString("sfall", "PartyACMsg", "AC:", armorClassMsg, 12, translationIni);
|
||||
GetPrivateProfileString("sfall", "PartyAddictMsg", "Addict", addictMsg, 16, translationIni);
|
||||
if (GetPrivateProfileIntA("Misc", "DisplayNPCExtraInfo", 0, ini)) {
|
||||
dlog("Applying display NPC extra info patch.", DL_INIT);
|
||||
HookCall(0x44926F, gdControlUpdateInfo_hook);
|
||||
GetPrivateProfileString("sfall", "PartyLvlMsg", "Lvl:", levelMsg, 12, translationIni);
|
||||
GetPrivateProfileString("sfall", "PartyACMsg", "AC:", armorClassMsg, 12, translationIni);
|
||||
GetPrivateProfileString("sfall", "PartyAddictMsg", "Addict", addictMsg, 16, translationIni);
|
||||
dlogr(" Done", DL_INIT);
|
||||
}
|
||||
}
|
||||
|
||||
void __stdcall PartyControlReset() {
|
||||
|
||||
Reference in New Issue
Block a user