Skip to content

Commit

Permalink
refactor: use @() when not calling __original
Browse files Browse the repository at this point in the history
  • Loading branch information
LordMidas committed Dec 7, 2023
1 parent a19ee48 commit f75c14f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion msu/hooks/entity/world/party.nut
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}

// Used in vanilla to fetch BaseMovementSpeed in the ai_flee function ; we now return the new computed value
q.getBaseMovementSpeed = @(__original) function()
q.getBaseMovementSpeed = @() function()
{
return this.getMovementSpeed();
}
Expand Down
2 changes: 1 addition & 1 deletion msu/hooks/items/item.nut
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
::MSU.HooksMod.hook("scripts/items/item", function(q) {
q.isItemType = @(__original) function( _t, _any = true, _only = false )
q.isItemType = @() function( _t, _any = true, _only = false )
{
if (_any)
{
Expand Down
6 changes: 3 additions & 3 deletions msu/hooks/skills/perks/perk_quick_hands.nut
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
this.m.ItemActionOrder = ::Const.ItemActionOrder.Any;
}

q.onUpdate = @(__original) function( _properties )
q.onUpdate = @() function( _properties )
{
}

q.onCombatStarted = @(__original) function()
q.onCombatStarted = @() function()
{
}

q.onCombatFinished = @(__original) function()
q.onCombatFinished = @() function()
{
this.skill.onCombatFinished();
}
Expand Down
2 changes: 1 addition & 1 deletion msu/hooks/states/world_state.nut
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
this.m.MenuStack.pop();
}

q.getLocalCombatProperties = @(__original) function( _pos, _ignoreNoEnemies = false )
q.getLocalCombatProperties = @() function( _pos, _ignoreNoEnemies = false )
{
local raw_parties = ::World.getAllEntitiesAtPos(_pos, ::Const.World.CombatSettings.CombatPlayerDistance);
local parties = [];
Expand Down

0 comments on commit f75c14f

Please sign in to comment.