function add_time_dirt_phase()
if mask_on_off == true and flag_add_dirt == true then
local armor_custom = set_get_armor_custom(2)
local tbl_custom = vergas_lib.str_explode("|",armor_custom,true)
if tonumber(tbl_custom[2]) < 6 then
local tm_dirt = tonumber(tbl_custom[3]) or 5
local base_dirt = 12
local mask, armor = mask_definition()
if strpos(armor,"killer_",1,true) or strpos(armor,"merc_",1,true) then base_dirt = 24 end
if strpos(armor,"bandit",1,true) then base_dirt = 6 end
if tm_dirt<base_dirt then tm_dirt = tm_dirt+1 else
tbl_custom[2]= tostring(tonumber(tbl_custom[2]) + 1)
mask = string.sub(mask,1,string.len(mask)-1)..tbl_custom[2]
set_mask(mask)
tm_dirt = 0
end
set_get_armor_custom(1,tbl_custom[1].."|"..tbl_custom[2].."|"..tm_dirt)
end
end
end