Difference between revisions of "User talk:Lisselli"
Jump to navigation
Jump to search
m
no edit summary
imported>Lisselli |
imported>Lisselli m |
||
Line 52: | Line 52: | ||
</source> | </source> | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
Float Function | Float Function GetDaysInMonth(Float afMonth=0.0) Global | ||
; Returns number of days of a month | |||
; Morning Star ; 0.0 ; days 31.0 :: Sun's Height ; 6.0 ; days 31.0 | |||
; Sun's Dawn ; 1.0 ; days 28.0 :: Last Seed ; 7.0 ; days 31.0 | |||
; First Seed ; 2.0 ; days 31.0 :: Hearthfire ; 8.0 ; days 30.0 | |||
; Rain's Hand ; 3.0 ; days 30.0 :: Frostfall ; 9.0 ; days 31.0 | |||
; Second Seed ; 4.0 ; days 31.0 :: Sun's dusk ; 10.0 ; days 30.0 | |||
; Midyear ; 5.0 ; days 30.0 :: Evening Star ; 11.0 ; days 31.0 | |||
if afMonth == 0.0 | |||
return 31.0 | |||
elseif afMonth == 1.0 | |||
return 28.0 | |||
elseif afMonth == 2.0 | |||
return 31.0 | |||
elseif afMonth == 3.0 | |||
return 30.0 | |||
elseif afMonth == 4.0 | |||
return 31.0 | |||
elseif afMonth == 5.0 | |||
return 30.0 | |||
elseif afMonth == 6.0 | |||
return 31.0 | |||
elseif afMonth == 7.0 | |||
return 31.0 | |||
elseif afMonth == 8.0 | |||
return 30.0 | |||
elseif afMonth == 9.0 | |||
return 31.0 | |||
elseif afMonth == 10.0 | |||
return 30.0 | |||
elseif afMonth == 11.0 | |||
return 31.0 | |||
endif | |||
EndFunction | |||
EndFunction | |||
</source> | </source> |