How Could this code be more efficient ? in Developer Help
|
|
Code:
mob/Move() if(!src.move) ..() else if(src.INKYUU)return 0 else if(src.INSUNA)return 0 else if(src.INHIJUTSU)return 0 else if(src.move) return 0 else if(src.stunned) return 0 mob/Move() ..() var/image/I . = ..() if(.) if(I) switch(dir) if(NORTH)pixel_y = -16 else if(SOUTH)pixel_y = -16 else if(EAST||WEST) src.icon_state="" mob/Move() ..() if(src.health<=0) src.SpawnV() src.DieParty()
|
Problem description:
When people move the server efficiency may drop a little bit, is there any way i can reduce, or make it better and still keeping the same style movement?(I`m not to familiar with movement)
|
Not quite sure what you're trying to do with the rest of it, but it looks messy.