mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 12:58:00 +03:00
Implement PCVisionBonus functions
This commit is contained in:
parent
5815faecda
commit
489c7a10b6
6 changed files with 72 additions and 1 deletions
|
@ -537,6 +537,10 @@ namespace Compiler
|
|||
extensions.registerInstruction("becomewerewolf", "", opcodeBecomeWerewolf, opcodeBecomeWerewolfExplicit);
|
||||
extensions.registerInstruction("undowerewolf", "", opcodeUndoWerewolf, opcodeUndoWerewolfExplicit);
|
||||
extensions.registerInstruction("setwerewolfacrobatics", "", opcodeSetWerewolfAcrobatics, opcodeSetWerewolfAcrobaticsExplicit);
|
||||
|
||||
extensions.registerFunction("getpcvisionbonus", 'f', "", opcodeGetPCVisionBonus);
|
||||
extensions.registerInstruction("setpcvisionbonus", "f", opcodeSetPCVisionBonus);
|
||||
extensions.registerInstruction("modpcvisionbonus", "f", opcodeModPCVisionBonus);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -484,6 +484,10 @@ namespace Compiler
|
|||
|
||||
const int opcodeGetStat = 0x200024e;
|
||||
const int opcodeGetStatExplicit = 0x200024f;
|
||||
|
||||
const int opcodeGetPCVisionBonus = 0x2000322;
|
||||
const int opcodeSetPCVisionBonus = 0x2000323;
|
||||
const int opcodeModPCVisionBonus = 0x2000324;
|
||||
}
|
||||
|
||||
namespace Transformation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue