Playerdeath()
if(src.hp <= 0)
world << "[src] died at [src.loc]!"
src.loc = locate(2,2,1)
src.hp = maxhp
src.mana = maxmana
src.check_hp()//this dont work
Problem description:
you see its simple code, but there is one problem: when you die you hp bar shows you have less than 5% hp, but in stats it shows you have 100% hp.i dont know how to fix it and i asked some people on one game, but still no one could help me fix it.