本文整理匯總了Python中team.Team.remove_funds方法的典型用法代碼示例。如果您正苦於以下問題:Python Team.remove_funds方法的具體用法?Python Team.remove_funds怎麽用?Python Team.remove_funds使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類team.Team
的用法示例。
在下文中一共展示了Team.remove_funds方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: preparation
# 需要導入模塊: from team import Team [as 別名]
# 或者: from team.Team import remove_funds [as 別名]
def preparation():
print()
print("======================================================")
print()
if CoreGame.return_week(game) > 1:
print("Before the next match, you'll have some time to prepare your team! ")
else:
print("Before the first match, you'll have some time to prepare your team! ")
action = input("What would you like to do? Enter 'Help' to see all commands: ")
while action.lower() != 'continue':
if action.lower() == "help":
print("You can do many things between matches, as long as you have the currency for it! There are a variety of ways to earn currency such as winning games")
print ("and finding sponsors. Below you'll find the list of commands and what they will allow you to do.")
print ("------------------------------------------------------------------------------------------------------------------------")
print("Train [Type] [Position]- Allows you to a single member of the team in the skill you choose.")
print(" Types of training:")
print(" 1v1 (++Brawling, +Mechanics)")
print(" Gank (++Awareness, +Brawling)")
print(" 2v2 (++Mechanics, +Teamwork)")
print(" Scrim (++Teamwork, +Awareness)")
print(" Ex: Train Mid 1v1")
print (" Cost: 500")
print ('-----')
print("Sponsor - Look for a new sponsor. If you find one and already have one, you will have to choose which to keep.")
print ('-----')
print("League - See the current League standings")
print ('-----')
print("Team - See your team's stats")
print ('-----')
print("Continue - Continue on to the next match!")
print ("------------------------------------------------------------------------------------------------------------------------")
elif "train" in action.lower():
#Setup Fund check
if Team.return_funds(teams[0]) >= 500:
if '1v1' in action.lower():
if 'top' in action.lower():
Player.train_player_1v1(players[0][0])
Team.remove_funds(teams[0], 500)
if 'mid' in action.lower():
Player.train_player_1v1(players[0][1])
Team.remove_funds(teams[0], 500)
if 'jung' in action.lower():
Player.train_player_1v1(players[0][2])
Team.remove_funds(teams[0], 500)
if 'carry' in action.lower():
Player.train_player_1v1(players[0][3])
Team.remove_funds(teams[0], 500)
if 'sup' in action.lower():
Player.train_player_1v1(players[0][4])
Team.remove_funds(teams[0], 500)
elif 'gank' in action.lower():
if 'top' in action.lower():
Player.train_player_gank(players[0][0])
Team.remove_funds(teams[0], 500)
if 'mid' in action.lower():
Player.train_player_gank(players[0][1])
Team.remove_funds(teams[0], 500)
if 'jung' in action.lower():
Player.train_player_gank(players[0][2])
Team.remove_funds(teams[0], 500)
if 'carry' in action.lower():
Player.train_player_gank(players[0][3])
Team.remove_funds(teams[0], 500)
if 'sup' in action.lower():
Player.train_player_gank(players[0][4])
Team.remove_funds(teams[0], 500)
elif '2v2' in action.lower():
if 'top' in action.lower():
Player.train_player_2v2(players[0][0])
Team.remove_funds(teams[0], 500)
if 'mid' in action.lower():
Player.train_player_2v2(players[0][1])
Team.remove_funds(teams[0], 500)
if 'jung' in action.lower():
Player.train_player_2v2(players[0][2])
Team.remove_funds(teams[0], 500)
if 'carry' in action.lower():
Player.train_player_2v2(players[0][3])
Team.remove_funds(teams[0], 500)
if 'sup' in action.lower():
Player.train_player_2v2(players[0][4])
Team.remove_funds(teams[0], 500)
elif 'scrim' in action.lower():
if 'top' in action.lower():
Player.train_player_scrim(players[0][0])
Team.remove_funds(teams[0], 500)
if 'mid' in action.lower():
Player.train_player_scrim(players[0][1])
Team.remove_funds(teams[0], 500)
if 'jung' in action.lower():
Player.train_player_scrim(players[0][2])
Team.remove_funds(teams[0], 500)
if 'carry' in action.lower():
Player.train_player_scrim(players[0][3])
Team.remove_funds(teams[0], 500)
if 'sup' in action.lower():
Player.train_player_scrim(players[0][4])
Team.remove_funds(teams[0], 500)
else:
print("Oh no! You don't have the required funds to do this training! You currently have %d while you need 500! Try again later." % Team.return_funds(teams[0]))
#.........這裏部分代碼省略.........