Compare commits

..

No commits in common. "master" and "one_slash_to_rule_them" have entirely different histories.

7 changed files with 788 additions and 876 deletions

1
.gitignore vendored
View file

@ -359,4 +359,3 @@ env
/simmadome/build
/simmadome/.eslintcache
/matteo_env/Lib/site-packages
/new_matteo_env

View file

@ -1,6 +1,5 @@
import random
from gametext import appearance_outcomes
from discord.app_commands import Choice
class Archetype:
name = "basic"
@ -127,12 +126,6 @@ def all_archetypes():
Control
]
def archetype_choices():
lst = []
for arch in all_archetypes():
lst.append(Choice(name=arch.display_name, value=arch.name))
return lst
def search_archetypes(text):
for archetype in all_archetypes():
if archetype.name == text or archetype.display_name.lower() == text.lower():

View file

@ -235,7 +235,7 @@ class game(object):
self.over = False
self.random_weather_flag = False
self.teams = {"away" : team1, "home" : team2}
self.archetypes = {team1.name : team1.archetypes, team2.name : team2.archetypes}
self.offense_archetypes = {}
self.defense_archetypes = {}
self.inning = 1
@ -254,14 +254,10 @@ class game(object):
self.voice = None
self.current_batter = None
try:
self.archetypes = {team1.name : team1.archetypes, team2.name : team2.archetypes}
for this_team in [team1, team2]:
for this_player in this_team.lineup + this_team.rotation:
if this_player.name in this_team.archetypes.keys():
this_team.archetypes[this_player.name].modify_player_stats(this_player)
except:
pass
for this_team in [team1, team2]:
for this_player in this_team.lineup + this_team.rotation:
if this_player.name in this_team.archetypes.keys():
this_team.archetypes[this_player.name].modify_player_stats(this_player)
def occupied_bases(self):
occ_dic = {}
@ -954,7 +950,7 @@ def get_team_and_owner(name):
update_team(team_json)
return (team_json, owner_id)
except:
return (None, None)
return None
def save_team(this_team, user_id):
try:

View file

@ -390,10 +390,13 @@ class TrespassOracle(game_strings_base):
def all_voices():
return {"default": game_strings_base}
return {"default": game_strings_base,
"The Goddesses": TheGoddesses,
"The New Guy": TheNewGuy,
"Trespass Oracle": TrespassOracle}
def weighted_voices(): #these are the ones accessible to random games
return [game_strings_base], [6]
return [game_strings_base, TheGoddesses, TheNewGuy], [6, 2, 2]
def base_string(base):

View file

@ -11,7 +11,7 @@
<OutputPath>.</OutputPath>
<Name>the-prestige</Name>
<RootNamespace>the-prestige</RootNamespace>
<InterpreterId>MSBuild|new_matteo_env|$(MSBuildProjectFullPath)</InterpreterId>
<InterpreterId>MSBuild|matteo_env|$(MSBuildProjectFullPath)</InterpreterId>
<IsWindowsApplication>False</IsWindowsApplication>
<SuppressConfigureTestFrameworkPrompt>true</SuppressConfigureTestFrameworkPrompt>
</PropertyGroup>
@ -67,15 +67,6 @@
<PathEnvironmentVariable>PYTHONPATH</PathEnvironmentVariable>
<Architecture>X86</Architecture>
</Interpreter>
<Interpreter Include="new_matteo_env\">
<Id>new_matteo_env</Id>
<Version>3.8</Version>
<Description>new_matteo_env (Python38-32)</Description>
<InterpreterPath>Scripts\python.exe</InterpreterPath>
<WindowsInterpreterPath>Scripts\pythonw.exe</WindowsInterpreterPath>
<PathEnvironmentVariable>PYTHONPATH</PathEnvironmentVariable>
<Architecture>X86</Architecture>
</Interpreter>
</ItemGroup>
<ItemGroup>
<Content Include="config.json" />
@ -43345,9 +43336,6 @@
<Folder Include="static\" />
<Folder Include="templates\" />
</ItemGroup>
<ItemGroup>
<InterpreterReference Include="Global|VisualStudio|Python38-32" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets" />
<!-- Uncomment the CoreCompile target to enable the Build command in
Visual Studio and specify your pre- and post-build commands in

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,5 @@
import random, math, roman
from gametext import appearance_outcomes, game_strings_base, base_string
from discord.app_commands import Choice
class Weather:
name = "Sunny"
@ -637,12 +636,6 @@ def all_weathers():
}
return weathers_dic
def weather_choices():
lst = []
for key, value in list(all_weathers().items()):
lst.append(Choice(name=key, value=key))
return lst
def safe_weathers():
"""weathers safe to swap in mid-game"""
weathers_dic = {