mob
proc
gravitylvl1()
spawn(rand(100,200))
gravitylvl1()
if(src.grav>0)
var/powergain=rand(1,6)
if(powergain==1||powergain==3)
src.powerlevel-=src.grav *(rand(1,10))
if(src.powerlevel>=1)
src<<"You feel the gravity force pulling you down."
src.maxpowerlevel += src.grav /(rand(1,20))
src.maxpowerlevel=round(src.maxpowerlevel)
src.maxki+= src.grav/(rand(60,90))
src.maxki=round(src.maxki)
src.stamina-=rand(1,5)
src.fatigue+=rand(1,5)
src.strgain+=rand(1,6)
src.strength+=strgain
src.defgain+=rand(1,7)
src.defense+=defgain
else
src.deathcheck()
if(powergain==2||powergain==4)
src.powerlevel -= src.grav * (rand(3,10))
if(src.powerlevel>=1)
src<<"You feel the gravity force lighten.."
src.maxpowerlevel += src.grav /(rand(5,25))
src.maxpowerlevel=round(src.maxpowerlevel)
src.maxki+= src.grav/(rand(50,80))
src.maxki=round(src.maxki)
src.stamina-=rand(1,3)
src.fatigue+=rand(1,3)
src.strgain+=rand(1,4)
src.strength+=strgain
src.defgain+=rand(1,4)
src.defense+=defgain
else
src.deathcheck()
if(powergain==5||powergain==6)
src.powerlevel -= src.grav * (rand(5,15))
if(src.powerlevel>=1)
src<<"You feel tremendous amount of gravity..pulling you down."
src.maxpowerlevel += src.grav /(rand(1,10))
src.maxpowerlevel=round(src.maxpowerlevel)
src.maxki+= src.grav/(rand(50,60))
src.maxki=round(src.maxki)
src.stamina-=rand(1,7)
src.fatigue+=rand(1,6)
src.strgain+=rand(1,10)
src.strength+=strgain
src.defgain+=rand(5,10)
src.defense+=defgain
else
src.deathcheck()
else
return
Problem description:
This is my gravity system, but as it is at the moment the client gains power without even moving.I want the client to be gaining power as they move around the gravity chamber and not by just standing around