Skip to content

Commit

Permalink
fix another dumb crash
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitawastaken committed Feb 2, 2024
1 parent 5b01c3f commit e540ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/playertased.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function PlayerTased:_check_action_shock(t, input)
local difficulty_index = tweak_data:difficulty_to_index(Global.game_settings.difficulty)
local weaker_tase = managers.player:upgrade_value("player", "weaker_tase_effect", 0)
local cam_base = self._unit:camera():camera_unit():base()
local is_last_man_standing = (managers.groupai:state():num_alive_criminals() == 1 and 0.33) -- weaker random pitch when last man standing / true solo
local is_last_man_standing = ((managers.groupai:state():num_alive_criminals() == 1 and 0.33) or 1) -- weaker random pitch when last man standing / true solo

if self._next_shock < t then
self._num_shocks = self._num_shocks or 0
Expand Down

0 comments on commit e540ff5

Please sign in to comment.