Skip to content

Commit

Permalink
Merge pull request #301 from GMLambda/remove-skill-use
Browse files Browse the repository at this point in the history
Remove useless use of skill concommand, its blocked anyway
  • Loading branch information
ZehMatt authored Jun 18, 2024
2 parents e1a36c7 + 10b8b97 commit 9a7b420
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions gamemode/sh_difficulty.lua
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,7 @@ function GM:AdjustDifficulty()
if data == nil then return end

if SERVER then
if tonumber(VERSION) < 201211 then
-- Remove this once main is updated.
RunConsoleCommand("skill", tostring(data.Skill))
end
game.SetSkillLevel(data.Skill)

for k, v in pairs(self.EnemyNPCs or {}) do
if IsValid(v) then
self:AdjustNPCDifficulty(v, data)
Expand Down
2 changes: 1 addition & 1 deletion gamemode/sh_metrics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ end

function GM:DrawMetrics()
if self:GetSetting("difficulty_metrics") == false then return end
local y = 10
local y = 20

-- Draw Difficulty
do
Expand Down

0 comments on commit 9a7b420

Please sign in to comment.