change the value of properties within an object
The code below declares a function which takes a creature object as a parameter and will be able to apply a change to it.
This line applies the code of the heal function with jamikazam as the creature.
This must be called after both jamikazam and heal have been declared!
This function halves the attack values of any creature you wish to spook
In this case, we spook jakodude
It should add a set amount of HP ( I did 20 ) to a creature.
A creature should not be able to exceed it's maxHP.
Created 11 months ago
Teach coding to your students with MVCode Teach
MVCode offers an integrated product designed to teach coding to students.
Learn more about MVCode Teach