MCPcopy Create free account
hub / github.com/brain-workshop/brainworkshop / default_ticks

Function default_ticks

brainworkshop.py:1134–1144  ·  view source on GitHub ↗
(mode)

Source from the content-addressed store, hash-verified

1132
1133
1134def default_ticks(mode):
1135 if ('TICKS_%i' % mode) in cfg:
1136 return cfg['TICKS_%i' % mode]
1137 elif mode > 127:
1138 bonus = ((mode & 128)/128) * cfg.BONUS_TICKS_CRAB
1139 if mode & 768:
1140 bonus += cfg['BONUS_TICKS_MULTI_%i' % ((mode & 768)/256+1)]
1141 if DEBUG: print("Adding a bonus of %i ticks for mode %i" % (bonus, mode))
1142 return bonus + default_ticks(mode % 128)
1143 else:
1144 return cfg.TICKS_DEFAULT
1145
1146#Create the game window
1147caption = []

Callers 2

__init__Method · 0.85
enforce_standard_modeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected