mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 07:09:40 +00:00
Handle SetWerewolfAcrobatics
This commit is contained in:
parent
ae183cb3e4
commit
db1036e5e5
4 changed files with 20 additions and 1 deletions
|
@ -347,5 +347,7 @@ op 0x2000217: BecomeWerewolf
|
|||
op 0x2000218: BecomeWerewolfExplicit
|
||||
op 0x2000219: UndoWerewolf
|
||||
op 0x200021a: UndoWerewolfExplicit
|
||||
op 0x200021b: SetWerewolfAcrobatics
|
||||
op 0x200021c: SetWerewolfAcrobaticsExplicit
|
||||
|
||||
opcodes 0x200021b-0x3ffffff unused
|
||||
opcodes 0x200021d-0x3ffffff unused
|
||||
|
|
|
@ -1069,6 +1069,18 @@ namespace MWScript
|
|||
}
|
||||
};
|
||||
|
||||
template <class R>
|
||||
class OpSetWerewolfAcrobatics : public Interpreter::Opcode0
|
||||
{
|
||||
public:
|
||||
|
||||
virtual void execute (Interpreter::Runtime& runtime)
|
||||
{
|
||||
// What to do? Stats (attributes, skills) are already set and unset with
|
||||
// BecomeWerewolf and UndoWerewolf.
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
void installOpcodes (Interpreter::Interpreter& interpreter)
|
||||
{
|
||||
|
@ -1194,6 +1206,8 @@ namespace MWScript
|
|||
interpreter.installSegment5 (Compiler::Stats::opcodeBecomeWerewolfExplicit, new OpSetWerewolf<ExplicitRef, true>);
|
||||
interpreter.installSegment5 (Compiler::Stats::opcodeUndoWerewolf, new OpSetWerewolf<ImplicitRef, false>);
|
||||
interpreter.installSegment5 (Compiler::Stats::opcodeUndoWerewolfExplicit, new OpSetWerewolf<ExplicitRef, false>);
|
||||
interpreter.installSegment5 (Compiler::Stats::opcodeSetWerewolfAcrobatics, new OpSetWerewolfAcrobatics<ImplicitRef>);
|
||||
interpreter.installSegment5 (Compiler::Stats::opcodeSetWerewolfAcrobaticsExplicit, new OpSetWerewolfAcrobatics<ExplicitRef>);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -421,6 +421,7 @@ namespace Compiler
|
|||
|
||||
extensions.registerInstruction("becomewerewolf", "", opcodeBecomeWerewolf, opcodeBecomeWerewolfExplicit);
|
||||
extensions.registerInstruction("undowerewolf", "", opcodeUndoWerewolf, opcodeUndoWerewolfExplicit);
|
||||
extensions.registerInstruction("setwerewolfacrobatics", "", opcodeSetWerewolfAcrobatics, opcodeSetWerewolfAcrobaticsExplicit);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -350,6 +350,8 @@ namespace Compiler
|
|||
const int opcodeBecomeWerewolfExplicit = 0x2000218;
|
||||
const int opcodeUndoWerewolf = 0x2000219;
|
||||
const int opcodeUndoWerewolfExplicit = 0x200021a;
|
||||
const int opcodeSetWerewolfAcrobatics = 0x200021b;
|
||||
const int opcodeSetWerewolfAcrobaticsExplicit = 0x200021c;
|
||||
const int opcodeIsWerewolf = 0x20001fd;
|
||||
const int opcodeIsWerewolfExplicit = 0x20001fe;
|
||||
|
||||
|
|
Loading…
Reference in a new issue