The object appearing on screen is called here.
mob/proc
Engage(mob/M)
for(var/obj/O in M.ally.enemies)
O = new()
O.screen_loc = "7,5"
src.client.screen += O
for(var/obj/Oo in usr.ally.allies)
Oo = new()
Oo.screen_loc = "1,2"
src.client.screen += Oo
Defined here
obj/Bulbasaur
icon = '001 Bulbasaur.dmi'
Enemy
TR
icon_state = "2"
pixel_y = 32
pixel_x = 32
TL
icon_state = "1"
pixel_y = 32
BR
icon_state = "4"
pixel_x = 32
BL
icon_state = "3"
Ally
screen_loc = "5,5"
TR
icon_state = "A2"
pixel_y = 32
pixel_x = 32
TL
icon_state = "A1"
pixel_y = 32
///pixel_x = -32
BR
icon_state = "A4"
pixel_x = 32
BL
pixel_x = -32
icon_state = "A3"
Problem description:
runtime error: Cannot read /mob/Squirtle (/mob/Squirtle ).enemies
proc name: Engage (/mob/proc/Engage)
usr: Choka (/mob)
src: Choka (/mob)
call stack:
Choka (/mob): Engage(Proffessor Blitz (/mob/Rowen))
Choka (/mob): Test(Proffessor Blitz (/mob/Rowen))
It says that the mob's Pokemon overlays are unreadable. Why?