so I got this error in attempting Falacy's tutorials im not sure how to fix it below is the runtime error and what I believe to be the relevant code.
Attack()
flick("Attack",src)
for(var/mob/M in get_step(src,src.dir))
var/Damage=max(0,src,Str-M.Def)
view(M)<<"[src] hit [M] for [Damage] Damage"
M.TakeDamage(Damage,src)
runtime error: type mismatch: cannot compare -3 to the enemy1 (/mob/Enemies/enemy1)
verb name: Attack (/mob/verb/Attack)
source file: verbs.dm,15
usr: the enemy1 (/mob/Enemies/enemy1)
src: the enemy1 (/mob/Enemies/enemy1)
call stack:
the enemy1 (/mob/Enemies/enemy1): Attack()
the enemy1 (/mob/Enemies/enemy1): CombatAI()
the enemy1 (/mob/Enemies/enemy1): New(Grass (9,4,1) (/turf/Grass))
Problem description:
Anyway, that's why you're getting a type mismatch. Take out src from the max() function and leave only max(0,Str-M.Def) and see if this fixes your problem.