diff --git a/src/Champs.py b/src/Champs.py index f301a31e38a550fc14ece33579b5fd293bfc1d06..0feef627f4557b66218a62fd75a027dae4e9254d 100644 --- a/src/Champs.py +++ b/src/Champs.py @@ -147,7 +147,7 @@ class TerrainVide(Champs): class Houblon (Champs): iconStatic = transformImage(pygame.image.load('../assets/Plantation/houblon.png'), *iconStaticSize) - textStatic = police.render('Houblon',False, (0,0,0)) + textStatic = police.render('Houblon',False, (255,255,255)) textDescriptionStatic = police.render("Houblon ça marche bien",False,(0,0,0)) montantAchat = 250 montantVente = 600 @@ -161,7 +161,7 @@ class Houblon (Champs): class Ble (Champs): iconStatic = transformImage(pygame.image.load('../assets/Plantation/wheat.png'), *iconStaticSize) - textStatic = police.render('Ble',False, (0,0,0)) + textStatic = police.render('Ble',False, (255,255,255)) textDescriptionStatic = police.render("Ble ça marche bien",False,(0,0,0)) montantAchat = 250 montantVente = 800 @@ -172,7 +172,7 @@ class Ble (Champs): class Malt (Champs): iconStatic = transformImage(pygame.image.load('../assets/Plantation/malt.png'), *iconStaticSize) - textStatic = police.render('Malt',False, (0,0,0)) + textStatic = police.render('Malt',False, (255,255,255)) textDescriptionStatic = police.render("Malt ça marche bien",False,(0,0,0)) montantAchat = 300 montantVente = 800 @@ -183,7 +183,7 @@ class Malt (Champs): class Chanvre(Champs): iconStatic = transformImage(pygame.image.load('../assets/Plantation/weed.png'), *iconStaticSize) - textStatic = police.render("Chanvre",False, (0,0,0)) + textStatic = police.render("Chanvre",False, (255,255,255)) textDescriptionStatic = police.render("Pour des spaces bières",False,(0,0,0)) montantAchat = 1000 montantVente = 5000 @@ -194,7 +194,7 @@ class Chanvre(Champs): class OrgeHiver(Champs): iconStatic = transformImage(pygame.image.load('../assets/Plantation/orge.png'), *iconStaticSize) - textStatic = police.render("Orge hiver",False, (0,0,0)) + textStatic = police.render("Orge hiver",False, (255,255,255)) textDescriptionStatic = police.render("Orge hiver ça marche bien",False,(0,0,0)) montantAchat = 300 montantVente = 800 @@ -205,7 +205,7 @@ class OrgeHiver(Champs): class OrgePrintemps(Champs): iconStatic = transformImage(pygame.image.load('../assets/Plantation/OrgePrintemps.png'), *iconStaticSize) - textStatic = police.render("Orge printemps",False, (0,0,0)) + textStatic = police.render("Orge printemps",False, (255,255,255)) textDescriptionStatic = police.render("Orge printemps ça marche bien",False,(0,0,0)) montantAchat = 500 montantVente = 1000 @@ -217,7 +217,7 @@ class OrgePrintemps(Champs): class Seigle(Champs): iconStatic = transformImage(pygame.image.load('../assets/Plantation/seigle.png'), *iconStaticSize) - textStatic = police.render("Seigle",False, (0,0,0)) + textStatic = police.render("Seigle",False, (255,255,255)) textDescriptionStatic = police.render("Seigle ça marche bien",False,(0,0,0)) montantAchat = 200 montantVente = 600 @@ -228,7 +228,7 @@ class Seigle(Champs): class Pesticide(Champs): iconStatic = transformImage(pygame.image.load('../assets/Plantation/pesticide.png'), *iconStaticSize) - textStatic = police.render("Pesticide",False, (0,0,0)) + textStatic = police.render("Pesticide",False, (255,255,255)) textDescriptionStatic = police.render("Pour tuer les insectes",False,(0,0,0)) montantAchat = 200 def __init__ (self,pos): diff --git a/src/Game.py b/src/Game.py index a233cab028b1412850c17204481a8161588f97f2..aeb67043aec0c1e3b89f86e50004a499845b0c3a 100644 --- a/src/Game.py +++ b/src/Game.py @@ -296,7 +296,7 @@ class Game: elif(type(bat) == Irrigation): self.ChangePourcentFanne(Irrigation,["canicule","secheresse"],10,"chaud",5) elif(type(bat) == IrrigationGoutte): - self.ChangePourcentFanne(irrigationGoutte,["canicule","secheresse"],5,"chaud",2) + self.ChangePourcentFanne(IrrigationGoutte,["canicule","secheresse"],5,"chaud",2) if(len(self.batiment) == 0): print("pas de batiment") for champ in self.champs: @@ -341,7 +341,7 @@ class Game: elif(type(bat) == Irrigation): self.ChangePourcentFanne(Irrigation,["chaud"],5) elif(type(bat) == IrrigationGoutte): - self.ChangePourcentFanne(irrigationGoutte,["chaud"],2) + self.ChangePourcentFanne(IrrigationGoutte,["chaud"],2) if(len(self.batiment) == 0): print("pas de batiment") for champ in self.champs: diff --git a/src/Infrastructure.py b/src/Infrastructure.py index a7e27a55f43c6385db97a7009875f9df32ad8a92..68e00f60c9a593a18de0cce791e5d1f7515e8661 100644 --- a/src/Infrastructure.py +++ b/src/Infrastructure.py @@ -79,7 +79,7 @@ class Infrastructure: class Puit (Infrastructure): NameObjet = " puit" iconStatic = pygame.transform.scale(pygame.image.load('../assets/Batiment/puit.png'),(150,150)) - textStatic = police.render('Puits',False, (0,0,0)) + textStatic = police.render('Puits',False, (255,255,255)) textDescriptionStatic = police.render("Moins efficace qu'un reservoir d'eau",False,(0,0,0)) montantAchat = 2000 def __init__ (self,pos): @@ -89,7 +89,7 @@ class Puit (Infrastructure): class ReservoirEau (Infrastructure): NameObjet = " réservoir à eau" iconStatic = pygame.transform.scale(pygame.image.load('../assets/Batiment/storagetank.png'),(150,150)) - textStatic = police.render('Capteur eau de pluie',False, (0,0,0)) + textStatic = police.render('Capteur eau de pluie',False, (255,255,255)) textDescriptionStatic = police.render("Permet de capturer l'eau de pluit",False,(0,0,0)) montantAchat = 3000 def __init__ (self,pos): @@ -99,7 +99,7 @@ class ReservoirEau (Infrastructure): class Irrigation (Infrastructure): NameObjet = " irrigation" iconStatic = pygame.transform.scale(pygame.image.load('../assets/Batiment/irrigation.png'),(150,150)) - textStatic = police.render('Arrosoir automatique ',False, (0,0,0)) + textStatic = police.render('Arrosoir automatique ',False, (255,255,255)) textDescriptionStatic = police.render("Permet d'arroser les plantes",False,(0,0,0)) montantAchat = 5000 def __init__ (self,pos): @@ -140,7 +140,7 @@ class Irrigation (Infrastructure): class IrrigationGoutte (Infrastructure): NameObjet = " irrigation goutte à goutte" iconStatic = pygame.transform.scale(pygame.image.load('../assets/Batiment/irrigationGoutte.png'),(150,150)) - textStatic = police.render('Système goutte à goutte',False, (0,0,0)) + textStatic = police.render('Système goutte à goutte',False, (255,255,255)) textDescriptionStatic = police.render("Permet d'arroser les plantes en économisant l'eau",False,(0,0,0)) montantAchat = 10000 def __init__ (self,pos): @@ -175,7 +175,7 @@ class Serre (Infrastructure): NameObjet = " serre" iconoriginal = pygame.image.load('../assets/Batiment/serre.png') iconStatic = pygame.transform.scale(iconoriginal,(150,150)) - textStatic = police.render('Serre',False, (0,0,0)) + textStatic = police.render('Serre',False, (255,255,255)) textDescriptionStatic = police.render("Permet de proteger les cultures du froid et de la chaleur",False,(0,0,0)) montantAchat = 1500 @@ -207,7 +207,7 @@ class Torche (Infrastructure): NameObjet = " torche" iconoriginal = pygame.image.load('../assets/Batiment/torche.png') iconStatic = pygame.transform.scale(pygame.image.load('../assets/Batiment/torche.png'),(150,150)) - textStatic = police.render('Torche',False, (0,0,0)) + textStatic = police.render('Torche',False, (255,255,255)) textDescriptionStatic = police.render("Permet de proteger les cultures du froid ",False,(0,0,0)) iconStaticCopie = pygame.transform.scale(iconoriginal.copy(), (250,200))