PDA

View Full Version : Small bug in the Call of Cthulhu ruleset



ianmward
September 15th, 2015, 13:42
I am pretty sure I have found a small bug in the Call of Cthulhu ruleset.

There is a typo in the CampaignDataManager script which handles dropping npc records into the charselect window to create PCs. The script refers to
sTarget == "charsheet"
Where it should be
sTarget == "charselect"

I've created myself an extension to fix it but it should be fixed in the ruleset, if you get a chance...

Cheers,

Ian

ianmward
September 16th, 2015, 13:07
I just found a couple more in campaign/scripts/manager_char.lua
in convertNPCtoPC the skill conversion does not work because of a couple of typos:
-- Skills
local aGameSkills = EraManager.getSkills();
local sSkills = DB.getValue(nodeNPC, "skills", "");
local aSkills = StringManager.split(sSpells, ",;\r", true);
for _,v in ipairs(aSkills) do
local sSkill, sMod = string.match(v, "([%a%s\(\)]*[%a\(\)]+)%s*(%d*)%%?");
if sLabel then
local nMod = tonumber(sMod) or 0;

the sSpells should be sSkills and the sLabel should be sSkill