Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as plt
- # final variables
- base_AS = 0.75
- rb_increment = base_AS * .06 # rb = Rageblade
- rb_AS = base_AS * .1
- # no rageblade scenario
- attack_speed = base_AS
- auto = 1
- time_until_attack = 1 / attack_speed
- points = []
- points.append((0, 0))
- for centisecond in range(3100):
- if time_until_attack < 0:
- points.append((centisecond / 100, auto))
- time_until_attack = 1 / attack_speed
- auto += 1
- time_until_attack -= 0.01
- xs = [x[0] for x in points]
- ys = [x[1] for x in points]
- plt.plot(xs, ys, label = 'No Rageblade')
- # one rageblade scenario
- attack_speed = base_AS + rb_AS
- auto = 1
- time_until_attack = 1 / attack_speed
- points = []
- capped = False
- points.append((0, 0))
- for centisecond in range(3100):
- if attack_speed > 5:
- capped = True
- attack_speed = 5
- time_until_attack = 1 / attack_speed
- if time_until_attack < 0 and capped == False:
- points.append((centisecond / 100, auto))
- attack_speed += rb_increment
- time_until_attack = 1 / attack_speed
- auto += 1
- elif time_until_attack < 0 and capped == True:
- points.append((centisecond / 100, auto))
- time_until_attack = 1 / attack_speed
- auto += 1
- time_until_attack -= 0.01
- xs = [x[0] for x in points]
- ys = [x[1] for x in points]
- plt.plot(xs, ys, label = '1 Rageblade')
- # two rageblades scenario
- attack_speed = base_AS + rb_AS * 2
- auto = 1
- time_until_attack = 1 / attack_speed
- points = []
- capped = False
- points.append((0, 0))
- for centisecond in range(3100):
- if attack_speed > 5:
- capped = True
- attack_speed = 5
- time_until_attack = 1 / attack_speed
- if time_until_attack < 0 and capped == False:
- points.append((centisecond / 100, auto))
- attack_speed += 2 * rb_increment
- time_until_attack = 1 / attack_speed
- auto += 1
- elif time_until_attack < 0 and capped == True:
- points.append((centisecond / 100, auto))
- time_until_attack = 1 / attack_speed
- auto += 1
- time_until_attack -= 0.01
- xs = [x[0] for x in points]
- ys = [x[1] for x in points]
- plt.plot(xs, ys, label = '2 Rageblades')
- # three rageblades scenario
- attack_speed = base_AS + rb_AS * 3
- auto = 1
- time_until_attack = 1 / attack_speed
- points = []
- capped = False
- points.append((0, 0))
- for centisecond in range(3100):
- if attack_speed > 5:
- capped = True
- attack_speed = 5
- time_until_attack = 1 / attack_speed
- if time_until_attack < 0 and capped == False:
- points.append((centisecond / 100, auto))
- attack_speed += 3 * rb_increment
- time_until_attack = 1 / attack_speed
- auto += 1
- elif time_until_attack < 0 and capped == True:
- points.append((centisecond / 100, auto))
- time_until_attack = 1 / attack_speed
- auto += 1
- time_until_attack -= 0.01
- xs = [x[0] for x in points]
- ys = [x[1] for x in points]
- plt.plot(xs, ys, label = '3 Rageblades')
- # one rageblade and RFC scenario
- attack_speed = base_AS + rb_AS + base_AS * 0.5
- auto = 1
- time_until_attack = 1 / attack_speed
- points = []
- capped = False
- points.append((0, 0))
- for centisecond in range(3100):
- if attack_speed > 5:
- capped = True
- attack_speed = 5
- time_until_attack = 1 / attack_speed
- if time_until_attack < 0 and capped == False:
- points.append((centisecond / 100, auto))
- attack_speed += rb_increment
- time_until_attack = 1 / attack_speed
- auto += 1
- elif time_until_attack < 0 and capped == True:
- points.append((centisecond / 100, auto))
- time_until_attack = 1 / attack_speed
- auto += 1
- time_until_attack -= 0.01
- xs = [x[0] for x in points]
- ys = [x[1] for x in points]
- plt.plot(xs, ys, label = '1 Rageblade and RFC')
- # plotting/formatting stuff
- plt.xlabel('Seconds', fontsize=16)
- plt.ylabel('Autos', fontsize=16)
- plt.legend(loc = 'upper left')
- plt.title('Total Autos based on Number of Rageblades (0.75 base AS)', fontdict={'fontsize': 18})
- plt.grid(b=True, which='major', color='blue', linestyle='-', linewidth = 0.5)
- plt.grid(b=True, which='minor', color='gray', linestyle='-', linewidth = 0.1)
- plt.minorticks_on()
- plt.yticks(fontsize=14)
- plt.xticks(fontsize=14)
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement