bbq stuff
This commit is contained in:
+1
-3
@@ -596,11 +596,9 @@ class Shitpost(commands.Cog):
|
||||
if float(weatherObj["d0neerslag"]) < 10:
|
||||
if weatherObj["image"] in ["regen", "buien", "bliksem", "hagel", "sneeuw", "halfbewolkt_regen"]:
|
||||
grade -= 2.0
|
||||
elif "regen" in weatherObj["verw"] or "buien" in weatherObj["verw"]:
|
||||
grade -= 1.5
|
||||
|
||||
#remove points for very hot weather: (above 30)
|
||||
grade -= max(0, (float(weatherObj["d0tmax"]) - 30.0)/3 )
|
||||
grade -= max(0, (float(weatherObj["d0tmax"]) - 30.0)/10 )
|
||||
except:
|
||||
return -1.0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user