obj/Skills
var/LearnedBy
var/LearnedOn
var/manaCost
Fire_Ball
LearnedBy="Grimmond"
LearnedOn=3
manaCost=1
verb/Fire_Ball()
set category="Skills"
if(usr.BasicSkillUse(src))
var/damage=round(usr.str/2.5)
damage+=rand(-2.5,2.5)
usr.Projectile("[src.name]",damage)
volcaniablast
LearnedBy="Grimmond"
LearnedOn=2
manaCost=8
verb/volcaniablast()
set category="Skills"
if(usr.BasicSkillUse(src))
var/damage=round(usr.str/1.2)
damage+=rand(6,6.6)
usr.Projectile("[src.name]",damage)
mob/proc/BasicSkillUse(var/obj/Skills/S)
if(src.mana>=S.manaCost)
src.mana-=S.manaCost
return 1
else
src<<"Not Enough Mana!"
return 0
obj/Supplemental
Projectile
density=1
var/mob/Owner
var/damage
icon='attacks.dmi'
New()
spawn(100) del src
Bump(mob/M)
if(ismob(M))
if(src.Owner)
M.health-=src.damage
M.DamageShow(damage,200,0,0)
M.DeathCheck(src.Owner)
del src
mob/proc/Projectile(var/IS,var/damage)
var/obj/Supplemental/Projectile/P=new()
P.icon_state=IS
P.damage=damage
P.Owner=src
P.dir=src.dir
P.loc=src.loc
walk(P,src.dir)
mob/proc/DirectDamage(var/SkillName,var/damage)
for(var/mob/Enemy/M in get_step(src,src.dir))
M.health-=damage
M.DamageShow(damage,200,0,0)
M.DeathCheck(src)
mob/proc/HealPlayer(mob/M,var/heal)
M.health=min(M.maxhealth,M.health+heal)
M.DamageShow(heal,0,200,0)
Problem description:
Well for some reason when i get lvl 2 i learn both skills,they are both in the skill list and when i click one a pannel appears saying-(the skill i click)word and the choices are volcaniablast and fire ball. (Also the skills show in the iten list for no reason)