kstoyanov

02. Construction Crew

Oct 13th, 2020 (edited)
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function constructionCrew(worker){
  2.  
  3.    if(worker.dizziness){
  4.  
  5.     worker.levelOfHydrated += 0.1 * worker.weight * worker.experience;
  6.     worker.dizziness = false;
  7.  
  8.    }
  9.    return worker;
  10. }
Add Comment
Please, Sign In to add comment