obj
ki_blast
icon = 'Ammo.dmi'
icon_state = "KI Blast"
layer = MOB_LAYER + 9
density = 1
Bump(mob/M)
if(istype(M,/mob/characters)||istype(M,/mob/monsters)||istype(M,/mob/multiform))
flick('Explosion.dmi',M)
del(src)
var/dmg = usr.str - M.powerlevel
M.powerlevel -= dmg
usr<<"<font color= Red>You did <b>[dmg]</b> damage to [M]"
if(M.powerlevel <= 0)
M.Die()
usr.LevelUp()
usr.Die()
del(src)
Problem description:
My problem is this when i the blast him no damage is severd.
Why is that?
make that
var/dmg = M.powerlevel - usr.str