mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 06:04:59 +00:00
Tidying and rearranging
This commit is contained in:
24
Data/Scripts/011_Data/009_PBGenderRates.rb
Normal file
24
Data/Scripts/011_Data/009_PBGenderRates.rb
Normal file
@@ -0,0 +1,24 @@
|
||||
module PBGenderRates
|
||||
Genderless = 0
|
||||
AlwaysMale = 1
|
||||
FemaleOneEighth = 2
|
||||
Female25Percent = 3
|
||||
Female50Percent = 4
|
||||
Female75Percent = 5
|
||||
FemaleSevenEighths = 6
|
||||
AlwaysFemale = 7
|
||||
|
||||
def self.genderByte(gender)
|
||||
case gender
|
||||
when AlwaysMale; return 0
|
||||
when FemaleOneEighth; return 32
|
||||
when Female25Percent; return 64
|
||||
when Female50Percent; return 128
|
||||
when Female75Percent; return 192
|
||||
when FemaleSevenEighths; return 224
|
||||
when AlwaysFemale; return 254
|
||||
when Genderless; return 255
|
||||
end
|
||||
return 255 # Default value (genderless)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user