Commits

Anonymous committed 87bf057

intial commit

  • Participants
  • Parent commits f53cd2e

Comments (0)

Files changed (1)

persona_gen/calendar_gen.rb

+=begin
+  handle stuff related to birthdate, calendar, and current dates
+=end
+require 'persona_utils'
+
+class PersonaCalendarGenerate
+
+  def setup_calendar(p,calendar)
+    p.personalia[:calendar]=calendar
+
+    case calendar
+      when 'Golarion'
+      p.personalia[:birthdate]={ 
+        :month=> do_roll_dice("1d12"),
+        :day=> do_roll_dice("1d30")
+        :year=> 4711 - do_roll_dice("3d6+14")
+      }
+      p.personalia[:current_date]={ 
+        :day => 6, 
+        :month =>8, 
+        :year => 4711
+      }
+    end
+
+  end