1
0

avtonorm.qsrc 651 B

1234567891011121314151617181920212223242526
  1. # avtonorm
  2. if car = 1:normhour = 20
  3. if car = 2:normhour = 20
  4. if car = 3:normhour = 20
  5. if car = 4:normhour = 20
  6. if car = 5:normhour = 20
  7. if car = 6:normhour = 20
  8. if car = 7:normhour = 20
  9. if car = 8:normhour = 20
  10. if car = 9:normhour = 15
  11. if car = 10:normhour = 18
  12. if car = 11:normhour = 15
  13. if car = 12:normhour = 15
  14. if car = 13:normhour = 50
  15. if car >= 95:normhour = 50
  16. if wrek = 0:
  17. normneed = 0 - (car['current_condition'] - car['new_condition'])
  18. normrem = normneed * normhour
  19. elseif wrek = 1:
  20. normneed = 0 - (car['current_condition'] - car['new_condition'])
  21. normrem = (normneed * normhour) * 8
  22. end
  23. --- avtonorm ---------------------------------