<commit_before>require("base.common")
module("lte.smell", package.seeall)

---------------------------
---- Character begins to smell --
-----------------------------
function addEffect(stinkEffect, Character)         -- Smell starts
    --base.common.InformNLS(Character,
    --"Du fhlst dich etwas unwohl.",
    --"You feel a little sickish.");
    stinkEffect:addValue("stinkIndex",1);
end


-----------------------------------------------
---- Character is affected by the smell he got. --
-------------------------------------------------
function callEffect(stinkEffect, Character)    -- Effect wird ausgefhrt
   -- Character:inform("callEffect 1");
    found,stinkIndex_n = stinkEffect:findValue("stinkIndex");    -- get the strength of the effect
    if found then
        npcs = world:getNPCSInRangeOf(Character.pos,2);
        for i, npc in pairs(npcs) do
	    if npc:get_race() == 37 then
	       stinkIndex_n=stinkIndex_n+1;
	    end   
	end
    end
    stinkEffect.nextCalled =math.random(300,600);       -- call it again in 300-600 seconds
    --Character:inform("callEffect 2");<commit_msg>Disabled the part of the script which adds the smell. Script should be nonfunctional now.<commit_after>require("base.common")
module("lte.smell", package.seeall)

---------------------------
---- Character begins to smell --
-----------------------------
function addEffect(stinkEffect, Character)         -- Smell starts
    --base.common.InformNLS(Character,
    --"Du fhlst dich etwas unwohl.",
    --"You feel a little sickish.");
  --  stinkEffect:addValue("stinkIndex",1); disabled
end


-----------------------------------------------
---- Character is affected by the smell he got. --
-------------------------------------------------
function callEffect(stinkEffect, Character)    -- Effect wird ausgefhrt
   -- Character:inform("callEffect 1");
    found,stinkIndex_n = stinkEffect:findValue("stinkIndex");    -- get the strength of the effect
    if found then
        npcs = world:getNPCSInRangeOf(Character.pos,2);
        for i, npc in pairs(npcs) do
	    if npc:get_race() == 37 then
	       stinkIndex_n=stinkIndex_n+1;
	    end   
	end
    end
    stinkEffect.nextCalled =math.random(300,600);       -- call it again in 300-600 seconds
    --Character:inform("callEffect 2");
{'fraction_non_alphanumeric': 0.2368306486721811, 'fraction_numerical': 0.01654331737048324, 'mean_word_length': 1.894206549118388, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3655401', 'n_tokens_mistral': 671, 'n_tokens_neox': 633, 'n_words': 170}