rgss_db 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +5 -0
- data/COPYING.md +674 -0
- data/README.md +347 -0
- data/bin/rgss-db +4 -0
- data/bin/rgssdb +4 -0
- data/lib/rgss_db/app.rb +928 -0
- data/lib/rgss_db/controller/data_manager.rb +557 -0
- data/lib/rgss_db/model/data_file.rb +516 -0
- data/lib/rgss_db/model/data_file_factory.rb +94 -0
- data/lib/rgss_db/model/debug.rb +199 -0
- data/lib/rgss_db/model/errors.rb +17 -0
- data/lib/rgss_db/model/mixins/jsonable.rb +35 -0
- data/lib/rgss_db/model/mixins/jsonable_constructor.rb +40 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rgss/color.rb +72 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rgss/rect.rb +70 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rgss/table.rb +99 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rgss/tone.rb +72 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rgss.rb +11 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb +44 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/animation.rb +31 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/animation_frame.rb +20 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/animation_timing.rb +23 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/area.rb +26 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/armor.rb +31 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/audio_file.rb +23 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/base_item.rb +25 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/bgm.rb +36 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/bgs.rb +36 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/class.rb +31 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/class_learning.rb +20 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/common_event.rb +25 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb +44 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_action.rb +29 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_drop_item.rb +23 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/event.rb +36 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/event_command.rb +19 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/event_page.rb +32 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/event_page_condition.rb +34 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/event_page_graphic.rb +25 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/item.rb +27 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb +47 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/map_info.rb +26 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/me.rb +27 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/move_command.rb +18 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/move_route.rb +20 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/se.rb +21 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/skill.rb +22 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb +47 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/system.rb +43 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/system_terms.rb +53 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/system_test_battler.rb +25 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/system_vehicle.rb +24 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/troop.rb +24 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_member.rb +23 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page.rb +21 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page_condition.rb +33 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/usable_item.rb +87 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg/weapon.rb +31 -0
- data/lib/rgss_db/model/rpg_maker_data/vx/rpg.rb +59 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rgss/color.rb +72 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rgss/rect.rb +70 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rgss/table.rb +99 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rgss/tone.rb +72 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rgss.rb +11 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/actor.rb +27 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/animation.rb +31 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/animation_frame.rb +23 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/animation_timing.rb +26 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/armor.rb +20 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/audio_file.rb +23 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/base_item.rb +31 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/base_item_feature.rb +29 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/bgm.rb +43 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/bgs.rb +43 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/class.rb +37 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/class_learning.rb +24 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/common_event.rb +33 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/enemy.rb +27 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/enemy_action.rb +26 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/enemy_drop_item.rb +24 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/equip_item.rb +19 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/event.rb +36 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/event_command.rb +19 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/event_page.rb +35 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/event_page_condition.rb +40 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/event_page_graphic.rb +31 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/item.rb +25 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/map.rb +58 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/map_encounter.rb +23 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/map_info.rb +26 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/me.rb +27 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/move_command.rb +17 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/move_route.rb +19 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/se.rb +21 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/skill.rb +25 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/state.rb +34 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/system.rb +62 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/system_terms.rb +25 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/system_test_battler.rb +24 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/system_vehicle.rb +27 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/tileset.rb +26 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/troop.rb +24 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/troop_member.rb +25 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/troop_page.rb +24 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/troop_page_condition.rb +39 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/usable_item.rb +84 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/usable_item_damage.rb +56 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/usable_item_effect.rb +25 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/weapon.rb +25 -0
- data/lib/rgss_db/model/rpg_maker_data/vx_ace/rpg.rb +66 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rgss/color.rb +72 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rgss/rect.rb +70 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rgss/table.rb +99 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rgss/tone.rb +72 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rgss.rb +11 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/actor.rb +44 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/animation.rb +28 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/animation_frame.rb +20 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/animation_timing.rb +24 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/armor.rb +37 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/audio_file.rb +23 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/class.rb +28 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/class_learning.rb +20 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/common_event.rb +25 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy.rb +47 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy_action.rb +28 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/event.rb +36 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/event_command.rb +19 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/event_page.rb +32 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/event_page_condition.rb +30 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/event_page_graphic.rb +27 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/item.rb +48 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/map.rb +39 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/map_info.rb +26 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/move_command.rb +18 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/move_route.rb +19 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb +47 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb +51 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/system.rb +56 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/system_test_battler.rb +25 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/system_words.rb +39 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/tileset.rb +39 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/troop.rb +24 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/troop_member.rb +23 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/troop_page.rb +21 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/troop_page_condition.rb +32 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg/weapon.rb +38 -0
- data/lib/rgss_db/model/rpg_maker_data/xp/rpg.rb +52 -0
- data/lib/rgss_db/model/strings.rb +607 -0
- data/lib/rgss_db/model/utilities.rb +90 -0
- data/lib/rgss_db/version.rb +7 -0
- data/lib/rgss_db/view/app_cli.rb +449 -0
- data/lib/rgss_db.rb +41 -0
- data/sig/rgss_db.rbs +5221 -0
- metadata +496 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RPG
|
4
|
+
#
|
5
|
+
# Data class for the system.
|
6
|
+
#
|
7
|
+
class System
|
8
|
+
include RgssDb::Jsonable
|
9
|
+
extend RgssDb::JsonableConstructor
|
10
|
+
|
11
|
+
def initialize
|
12
|
+
@magic_number = 0
|
13
|
+
@party_members = [1]
|
14
|
+
@elements = [nil, ""]
|
15
|
+
@switches = [nil, ""]
|
16
|
+
@variables = [nil, ""]
|
17
|
+
@windowskin_name = ""
|
18
|
+
@title_name = ""
|
19
|
+
@gameover_name = ""
|
20
|
+
@battle_transition = ""
|
21
|
+
@title_bgm = RPG::AudioFile.new
|
22
|
+
@battle_bgm = RPG::AudioFile.new
|
23
|
+
@battle_end_me = RPG::AudioFile.new
|
24
|
+
@gameover_me = RPG::AudioFile.new
|
25
|
+
@cursor_se = RPG::AudioFile.new("", 80)
|
26
|
+
@decision_se = RPG::AudioFile.new("", 80)
|
27
|
+
@cancel_se = RPG::AudioFile.new("", 80)
|
28
|
+
@buzzer_se = RPG::AudioFile.new("", 80)
|
29
|
+
@equip_se = RPG::AudioFile.new("", 80)
|
30
|
+
@shop_se = RPG::AudioFile.new("", 80)
|
31
|
+
@save_se = RPG::AudioFile.new("", 80)
|
32
|
+
@load_se = RPG::AudioFile.new("", 80)
|
33
|
+
@battle_start_se = RPG::AudioFile.new("", 80)
|
34
|
+
@escape_se = RPG::AudioFile.new("", 80)
|
35
|
+
@actor_collapse_se = RPG::AudioFile.new("", 80)
|
36
|
+
@enemy_collapse_se = RPG::AudioFile.new("", 80)
|
37
|
+
@words = RPG::System::Words.new
|
38
|
+
@test_battlers = []
|
39
|
+
@test_troop_id = 1
|
40
|
+
@start_map_id = 1
|
41
|
+
@start_x = 0
|
42
|
+
@start_y = 0
|
43
|
+
@battleback_name = ""
|
44
|
+
@battler_name = ""
|
45
|
+
@battler_hue = 0
|
46
|
+
@edit_map_id = 1
|
47
|
+
end
|
48
|
+
|
49
|
+
attr_accessor :magic_number, :party_members, :elements, :switches, :variables, :windowskin_name, :title_name,
|
50
|
+
:gameover_name, :battle_transition, :title_bgm, :battle_bgm, :battle_end_me, :gameover_me,
|
51
|
+
:cursor_se, :decision_se, :cancel_se, :buzzer_se, :equip_se, :shop_se, :save_se, :load_se,
|
52
|
+
:battle_start_se, :escape_se, :actor_collapse_se, :enemy_collapse_se, :words, :test_battlers,
|
53
|
+
:test_troop_id, :start_map_id, :start_x, :start_y, :battleback_name, :battler_name,
|
54
|
+
:battler_hue, :edit_map_id
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RPG
|
4
|
+
class System
|
5
|
+
#
|
6
|
+
# Data class for the battlers used in battle tests.
|
7
|
+
#
|
8
|
+
class TestBattler
|
9
|
+
include RgssDb::Jsonable
|
10
|
+
extend RgssDb::JsonableConstructor
|
11
|
+
|
12
|
+
def initialize
|
13
|
+
@actor_id = 1
|
14
|
+
@level = 1
|
15
|
+
@weapon_id = 0
|
16
|
+
@armor1_id = 0
|
17
|
+
@armor2_id = 0
|
18
|
+
@armor3_id = 0
|
19
|
+
@armor4_id = 0
|
20
|
+
end
|
21
|
+
|
22
|
+
attr_accessor :actor_id, :level, :weapon_id, :armor1_id, :armor2_id, :armor3_id, :armor4_id
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RPG
|
4
|
+
class System
|
5
|
+
#
|
6
|
+
# Data class for terminology.
|
7
|
+
#
|
8
|
+
class Words
|
9
|
+
include RgssDb::Jsonable
|
10
|
+
extend RgssDb::JsonableConstructor
|
11
|
+
|
12
|
+
def initialize
|
13
|
+
@gold = ""
|
14
|
+
@hp = ""
|
15
|
+
@sp = ""
|
16
|
+
@str = ""
|
17
|
+
@dex = ""
|
18
|
+
@agi = ""
|
19
|
+
@int = ""
|
20
|
+
@atk = ""
|
21
|
+
@pdef = ""
|
22
|
+
@mdef = ""
|
23
|
+
@weapon = ""
|
24
|
+
@armor1 = ""
|
25
|
+
@armor2 = ""
|
26
|
+
@armor3 = ""
|
27
|
+
@armor4 = ""
|
28
|
+
@attack = ""
|
29
|
+
@skill = ""
|
30
|
+
@guard = ""
|
31
|
+
@item = ""
|
32
|
+
@equip = ""
|
33
|
+
end
|
34
|
+
|
35
|
+
attr_accessor :gold, :hp, :sp, :str, :dex, :agi, :int, :atk, :pdef, :mdef, :weapon, :armor1, :armor2, :armor3,
|
36
|
+
:armor4, :attack, :skill, :guard, :item, :equip
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RPG
|
4
|
+
#
|
5
|
+
# Data class for tilesets.
|
6
|
+
#
|
7
|
+
class Tileset
|
8
|
+
include RgssDb::Jsonable
|
9
|
+
extend RgssDb::JsonableConstructor
|
10
|
+
|
11
|
+
def initialize
|
12
|
+
@id = 0
|
13
|
+
@name = ""
|
14
|
+
@tileset_name = ""
|
15
|
+
@autotile_names = [""] * 7
|
16
|
+
@panorama_name = ""
|
17
|
+
@panorama_hue = 0
|
18
|
+
@fog_name = ""
|
19
|
+
@fog_hue = 0
|
20
|
+
@fog_opacity = 64
|
21
|
+
@fog_blend_type = 0
|
22
|
+
@fog_zoom = 200
|
23
|
+
@fog_sx = 0
|
24
|
+
@fog_sy = 0
|
25
|
+
@battleback_name = ""
|
26
|
+
@passages = Table.new(384)
|
27
|
+
@priorities = Table.new(384)
|
28
|
+
@terrain_tags = Table.new(384)
|
29
|
+
end
|
30
|
+
|
31
|
+
def to_s
|
32
|
+
@name.to_s
|
33
|
+
end
|
34
|
+
|
35
|
+
attr_accessor :id, :name, :tileset_name, :autotile_names, :panorama_name, :panorama_hue, :fog_name, :fog_hue,
|
36
|
+
:fog_opacity, :fog_blend_type, :fog_zoom, :fog_sx, :fog_sy, :battleback_name, :passages,
|
37
|
+
:priorities, :terrain_tags
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RPG
|
4
|
+
#
|
5
|
+
# Data class for troops.
|
6
|
+
#
|
7
|
+
class Troop
|
8
|
+
include RgssDb::Jsonable
|
9
|
+
extend RgssDb::JsonableConstructor
|
10
|
+
|
11
|
+
def initialize
|
12
|
+
@id = 0
|
13
|
+
@name = ""
|
14
|
+
@members = []
|
15
|
+
@pages = [RPG::Troop::Page.new]
|
16
|
+
end
|
17
|
+
|
18
|
+
def to_s
|
19
|
+
@name.to_s
|
20
|
+
end
|
21
|
+
|
22
|
+
attr_accessor :id, :name, :members, :pages
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RPG
|
4
|
+
class Troop
|
5
|
+
#
|
6
|
+
# Data class for troop members.
|
7
|
+
#
|
8
|
+
class Member
|
9
|
+
include RgssDb::Jsonable
|
10
|
+
extend RgssDb::JsonableConstructor
|
11
|
+
|
12
|
+
def initialize
|
13
|
+
@enemy_id = 1
|
14
|
+
@x = 0
|
15
|
+
@y = 0
|
16
|
+
@hidden = false
|
17
|
+
@immortal = false
|
18
|
+
end
|
19
|
+
|
20
|
+
attr_accessor :enemy_id, :x, :y, :hidden, :immortal
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RPG
|
4
|
+
class Troop
|
5
|
+
#
|
6
|
+
# Data class for battle events (pages).
|
7
|
+
#
|
8
|
+
class Page
|
9
|
+
include RgssDb::Jsonable
|
10
|
+
extend RgssDb::JsonableConstructor
|
11
|
+
|
12
|
+
def initialize
|
13
|
+
@condition = RPG::Troop::Page::Condition.new
|
14
|
+
@span = 0
|
15
|
+
@list = [RPG::EventCommand.new]
|
16
|
+
end
|
17
|
+
|
18
|
+
attr_accessor :condition, :span, :list
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RPG
|
4
|
+
class Troop
|
5
|
+
class Page
|
6
|
+
#
|
7
|
+
# A database of battle event [Conditions].
|
8
|
+
#
|
9
|
+
class Condition
|
10
|
+
include RgssDb::Jsonable
|
11
|
+
extend RgssDb::JsonableConstructor
|
12
|
+
|
13
|
+
def initialize
|
14
|
+
@turn_valid = false
|
15
|
+
@enemy_valid = false
|
16
|
+
@actor_valid = false
|
17
|
+
@switch_valid = false
|
18
|
+
@turn_a = 0
|
19
|
+
@turn_b = 0
|
20
|
+
@enemy_index = 0
|
21
|
+
@enemy_hp = 50
|
22
|
+
@actor_id = 1
|
23
|
+
@actor_hp = 50
|
24
|
+
@switch_id = 1
|
25
|
+
end
|
26
|
+
|
27
|
+
attr_accessor :turn_valid, :enemy_valid, :actor_valid, :switch_valid, :turn_a, :turn_b, :enemy_index,
|
28
|
+
:enemy_hp, :actor_id, :actor_hp, :switch_id
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RPG
|
4
|
+
#
|
5
|
+
# Data class for weapons.
|
6
|
+
#
|
7
|
+
class Weapon
|
8
|
+
include RgssDb::Jsonable
|
9
|
+
extend RgssDb::JsonableConstructor
|
10
|
+
|
11
|
+
def initialize
|
12
|
+
@id = 0
|
13
|
+
@name = ""
|
14
|
+
@icon_name = ""
|
15
|
+
@description = ""
|
16
|
+
@animation1_id = 0
|
17
|
+
@animation2_id = 0
|
18
|
+
@price = 0
|
19
|
+
@atk = 0
|
20
|
+
@pdef = 0
|
21
|
+
@mdef = 0
|
22
|
+
@str_plus = 0
|
23
|
+
@dex_plus = 0
|
24
|
+
@agi_plus = 0
|
25
|
+
@int_plus = 0
|
26
|
+
@element_set = []
|
27
|
+
@plus_state_set = []
|
28
|
+
@minus_state_set = []
|
29
|
+
end
|
30
|
+
|
31
|
+
def to_s
|
32
|
+
@name.to_s
|
33
|
+
end
|
34
|
+
|
35
|
+
attr_accessor :id, :name, :icon_name, :description, :animation1_id, :animation2_id, :price, :atk, :pdef, :mdef,
|
36
|
+
:str_plus, :dex_plus, :agi_plus, :int_plus, :element_set, :plus_state_set, :minus_state_set
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Application mixins
|
4
|
+
require_relative "../../mixins/jsonable"
|
5
|
+
require_relative "../../mixins/jsonable_constructor"
|
6
|
+
|
7
|
+
# RPGXP Data Structures (RPGXP.chm::/rgss/g_rpg_data.html)
|
8
|
+
require_relative "./rpg/map"
|
9
|
+
require_relative "./rpg/map_info"
|
10
|
+
|
11
|
+
require_relative "./rpg/event"
|
12
|
+
require_relative "./rpg/event_page"
|
13
|
+
require_relative "./rpg/event_page_condition"
|
14
|
+
require_relative "./rpg/event_page_graphic"
|
15
|
+
require_relative "./rpg/event_command"
|
16
|
+
|
17
|
+
require_relative "./rpg/move_route"
|
18
|
+
require_relative "./rpg/move_command"
|
19
|
+
|
20
|
+
require_relative "./rpg/actor"
|
21
|
+
|
22
|
+
require_relative "./rpg/class"
|
23
|
+
require_relative "./rpg/class_learning"
|
24
|
+
|
25
|
+
require_relative "./rpg/skill"
|
26
|
+
require_relative "./rpg/item"
|
27
|
+
require_relative "./rpg/weapon"
|
28
|
+
require_relative "./rpg/armor"
|
29
|
+
|
30
|
+
require_relative "./rpg/enemy"
|
31
|
+
require_relative "./rpg/enemy_action"
|
32
|
+
|
33
|
+
require_relative "./rpg/troop"
|
34
|
+
require_relative "./rpg/troop_member"
|
35
|
+
require_relative "./rpg/troop_page"
|
36
|
+
require_relative "./rpg/troop_page_condition"
|
37
|
+
|
38
|
+
require_relative "./rpg/state"
|
39
|
+
|
40
|
+
require_relative "./rpg/animation"
|
41
|
+
require_relative "./rpg/animation_frame"
|
42
|
+
require_relative "./rpg/animation_timing"
|
43
|
+
|
44
|
+
require_relative "./rpg/tileset"
|
45
|
+
|
46
|
+
require_relative "./rpg/common_event"
|
47
|
+
|
48
|
+
require_relative "./rpg/system"
|
49
|
+
require_relative "./rpg/system_words"
|
50
|
+
require_relative "./rpg/system_test_battler"
|
51
|
+
|
52
|
+
require_relative "./rpg/audio_file"
|