Adding new files
This commit is contained in:
10
.idea/.gitignore
generated
vendored
Normal file
10
.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Ignored default folder with query files
|
||||||
|
/queries/
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
8
.idea/Sims4Mods.iml
generated
Normal file
8
.idea/Sims4Mods.iml
generated
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="PYTHON_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$" />
|
||||||
|
<orderEntry type="jdk" jdkName="Python 3.12" jdkType="Python SDK" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
6
.idea/inspectionProfiles/profiles_settings.xml
generated
Normal file
6
.idea/inspectionProfiles/profiles_settings.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<component name="InspectionProjectProfileManager">
|
||||||
|
<settings>
|
||||||
|
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||||
|
<version value="1.0" />
|
||||||
|
</settings>
|
||||||
|
</component>
|
||||||
7
.idea/misc.xml
generated
Normal file
7
.idea/misc.xml
generated
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Black">
|
||||||
|
<option name="sdkName" value="Python 3.12" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12" project-jdk-type="Python SDK" />
|
||||||
|
</project>
|
||||||
8
.idea/modules.xml
generated
Normal file
8
.idea/modules.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/Sims4Mods.iml" filepath="$PROJECT_DIR$/.idea/Sims4Mods.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
9
household funds.py
Normal file
9
household funds.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
household_funds = 100000
|
||||||
|
|
||||||
|
def check_wealth(funds):
|
||||||
|
if funds > 50000:
|
||||||
|
print("High Net Worth")
|
||||||
|
else:
|
||||||
|
print("Low Net Worth")
|
||||||
|
|
||||||
|
check_wealth(household_funds)
|
||||||
17
traits.py
Normal file
17
traits.py
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
class Trait:
|
||||||
|
def __init__(self, name, buff_value):
|
||||||
|
self.name = name
|
||||||
|
self.buff_value = buff_value
|
||||||
|
|
||||||
|
def trigger_effect(self):
|
||||||
|
print(self.name + " gives a buff of", self.buff_value)
|
||||||
|
|
||||||
|
class RewardTrait(Trait):
|
||||||
|
def set_price(self, price):
|
||||||
|
self.price = price
|
||||||
|
|
||||||
|
savant_trait = RewardTrait("Savant" , 5)
|
||||||
|
savant_trait.set_price(2000)
|
||||||
|
print(savant_trait.price)
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user