Skip to content
Snippets Groups Projects
Commit b6f58d40 authored by Ryan Hoppe (rmh898)'s avatar Ryan Hoppe (rmh898)
Browse files

Changed enemy collisions so they take damage based on the damage range of the weapon

parent 5bdab6ff
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ public class Collisions : MonoBehaviour {
return;
}
else {
hitpoints -= 1;
hitpoints = hitpoints - Random.Range(weapons[currentWeapon].damageMin,weapons[currentWeapon].damageMax);
}
}
......@@ -34,4 +34,4 @@ public class Collisions : MonoBehaviour {
}
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment