Browse Source

Better default values for newly-created events

Marcus Huderle 6 years ago
parent
commit
b05c59bfd8
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      event.cpp

+ 3
- 3
event.cpp View File

42
     Event *event = new Event;
42
     Event *event = new Event;
43
     event->put("event_group_type", "object_event_group");
43
     event->put("event_group_type", "object_event_group");
44
     event->put("event_type", EventType::Object);
44
     event->put("event_type", EventType::Object);
45
-    event->put("sprite", "MOVEMENT_TYPE_LOOK_AROUND");
46
-    event->put("movement_type", "1");
45
+    event->put("sprite", "EVENT_OBJ_GFX_BOY_1");
46
+    event->put("movement_type", "MOVEMENT_TYPE_LOOK_AROUND");
47
     event->put("radius_x", 0);
47
     event->put("radius_x", 0);
48
     event->put("radius_y", 0);
48
     event->put("radius_y", 0);
49
     event->put("script_label", "NULL");
49
     event->put("script_label", "NULL");
89
     Event *event = new Event;
89
     Event *event = new Event;
90
     event->put("event_group_type", "bg_event_group");
90
     event->put("event_group_type", "bg_event_group");
91
     event->put("event_type", EventType::Sign);
91
     event->put("event_type", EventType::Sign);
92
-    event->put("player_facing_direction", "0");
92
+    event->put("player_facing_direction", "BG_EVENT_PLAYER_FACING_ANY");
93
     event->put("script_label", "NULL");
93
     event->put("script_label", "NULL");
94
     return event;
94
     return event;
95
 }
95
 }