@ -36,7 +36,7 @@ arguments
set the skill that we ' re talking about
set the skill that we ' re talking about
- mode ( add / set )
- mode ( add / set )
are we adding experience / levels or setting them ?
are we adding experience / levels or setting them ?
- granularity ( experience / level s )
- granularity ( experience / level )
direct experience , or experience levels ?
direct experience , or experience levels ?
- unit id
- unit id
id of the target unit
id of the target unit
@ -87,9 +87,9 @@ if args.granularity == granularity.experience then
end
end
elseif args.granularity == granularity.level then
elseif args.granularity == granularity.level then
if args.mode == mode.set then
if args.mode == mode.set then
skill.rating = df.skill_rating[ args.value]
skill.rating = args.value
elseif args.mode == mode.add then
elseif args.mode == mode.add then
skill.rating = df.skill_rating[ args.value + df.skill_rating[ skill.rating] ]
skill.rating = args.value + skill.rating
else
else
error ' bad mode '
error ' bad mode '
end
end