Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

[WIP] Refactoring commands' declaration & documentation #414

Open
wants to merge 393 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
393 commits
Select commit Hold shift + click to select a range
b73e0b5
[#264] Actors#actor_experience_rate command's refactoring
acs-l May 26, 2018
fc7bf9b
[#264] Actors#actor_name command's refactoring
acs-l May 26, 2018
f928190
[#265] Definition of a new parameter's type: 'String'
acs-l May 26, 2018
e8df98c
[#264] Actors#set_actor_name command's refactoring
acs-l May 26, 2018
ecd744f
[#264] Actors#actor_nickname command's refactoring
acs-l May 26, 2018
e992ad1
[#264] Actors#set_actor_nickname command's refactoring
acs-l May 26, 2018
064b60c
[#264] Actors#actor_character_name command's refactoring
acs-l May 26, 2018
6bae062
[#264] Actors#actor_character_index command's refactoring
acs-l May 26, 2018
ba93661
[#264] Actors#actor_face_name command's refactoring
acs-l May 26, 2018
d8a8460
[#264] Actors#actor_face_index command's refactoring
acs-l May 26, 2018
b99a74b
[#264] Actors#actor_class command's refactoring
acs-l May 26, 2018
b83d081
[#264] Actors#actor_exp_for_next_level command's refactoring
acs-l May 26, 2018
e909fcd
[#264] Making 'SLOT' a common parameter for 'Actors'
acs-l May 26, 2018
ef3c16a
[#265] Definition of anew parameter's type: 'ItemId' and adding missi…
acs-l May 26, 2018
81fcd86
[#264] Actors#actor_change_equip command's refactoring
acs-l May 26, 2018
d4f5c44
[#264] Actors#actor_equip_weapon command's refactoring
acs-l May 26, 2018
5f760cd
[#264] Actors#actor_equip_shield command's refactoring
acs-l May 26, 2018
66880b5
[#264] Actors#actor_equip_head command's refactoring
acs-l May 26, 2018
419a8ca
[#264] Actors#actor_equip_body command's refactoring
acs-l May 26, 2018
edb9257
[#264] Actors#actor_equip_accessory command's refactoring
acs-l May 26, 2018
69f0e8c
[#264] Actors#actor_optimize_equipement command's refactoring
acs-l May 26, 2018
63e951f
[#264] Actors#actor_level_up command's refactoring
acs-l May 26, 2018
f5e1e81
[#264] Actors#actor_level_down command's refactoring
acs-l May 26, 2018
e745586
[#265] Definition of a new parameter's type: Integer
acs-l May 26, 2018
627b4b2
[#264] Actors#actor_give_exp command's refactoring
acs-l May 26, 2018
1727611
[#265] Definition of a new parameter's type: SkillId
acs-l May 26, 2018
2522270
[#265] Adding 'SKILL_ID' as a new common parameter in Actors
acs-l May 26, 2018
b7915a8
[#264] Actors#actor_learn command's refactoring
acs-l May 26, 2018
ae86c1c
[#264] Actors#actor_forget command's refactoring
acs-l May 26, 2018
fc581b5
[#264] Actors#actor_knowns? command's refactoring
acs-l May 26, 2018
dfea3f6
[#263] Fixing issue related to scopes of used classes
acs-l May 26, 2018
e78f75e
[#263] Adding support for commands' aliases
acs-l May 26, 2018
97b3701
[#263] Fixing splat operator (*) usage when there is only one single …
acs-l May 26, 2018
17285b0
[#264] Adding aliases to some of 'Actors' commands
acs-l May 26, 2018
cdaf8c4
[#264] Fixing typo. in 'SKILL_ID' usages
acs-l May 26, 2018
da8061e
Integrating 'Actors' refactored commands into RME
acs-l May 26, 2018
dbf67c7
[#265] Definition of two new parameters' types: CharacterIndex & Face…
acs-l May 26, 2018
9007144
[#265] Fixing issue related to scoped usage of String
acs-l May 26, 2018
64fe540
[#265] Renaming 'CharacterIndex' to 'CharsetIndex'
acs-l May 26, 2018
6d168b6
[#264] Definition of common Actors' parameters
acs-l May 26, 2018
59cf0e8
[#264] Actors#actor_set_graphic command's refactoring
acs-l May 26, 2018
3be4fab
[#264] Actors#actor_weapons command's refactoring
acs-l May 26, 2018
35bdf09
[#264] Actors#actor_armors command's refactoring
acs-l Jun 1, 2018
2a272b0
[#264] Actors#actor_skills command's refactoring
acs-l Jun 1, 2018
3e79b21
Fixing typo. in file's declaration
acs-l Jun 1, 2018
411b79f
[#264] Actors#actor_change_appear command's refactoring
acs-l Jun 1, 2018
4b5c0f1
[#264] Actors#actor_change_character command's refactoring
acs-l Jun 1, 2018
ee1304c
[#264] Actors#actor_change_face command's refactoring
acs-l Jun 1, 2018
7e12d56
[#265] Definition of a new parameter's type: strictly positive integers
acs-l Jun 1, 2018
530b8ad
[#264] Actors#actor_slot command's refactoring
acs-l Jun 1, 2018
b2f379b
[#265] Definition of a new parameter's type: element's identifier
acs-l Jun 1, 2018
b049ecf
[#264] Actors#actor_element_rate command's refactoring
acs-l Jun 1, 2018
7b0db9e
[#265] Removing old Actors' module as it has been fully refactored
acs-l Jun 1, 2018
1a164a1
[#264] Initializing Area related commands refactoring
acs-l Jun 1, 2018
2d79607
[#264] Area#create_rect_area command's refactoring
acs-l Jun 2, 2018
73c73f6
[#264] Area#create_circle_area command's refactoring
acs-l Jun 2, 2018
8b2d57b
Fixing typo. in parameter's type's declaration
acs-l Jun 2, 2018
3605610
[#263] Implementing generic types of parameters (variadic & list)
acs-l Jun 3, 2018
01c8c50
[#263] Updating implementation of commands' validation & definition
acs-l Jun 3, 2018
3b30b48
[#264] Area#create_ellipse_area command's refactoring
acs-l Jun 3, 2018
bd9b0ef
[#264] Area#create_polygon_area command's refactoring
acs-l Jun 3, 2018
9b28ac2
[#265] Definition of a new parameter's type: virtual area
acs-l Jun 3, 2018
68da0a8
[#264] Area#in_area? command's refactoring
acs-l Jun 3, 2018
bf1316a
[#264] Area.mouse_hover_area? command's refactoring
acs-l Jun 3, 2018
da2145f
[#264] Area.mouse_hover_square_area? command's refactoring
acs-l Jun 3, 2018
a06924b
[#264] Area.mouse_click_area? command's refactoring
acs-l Jun 3, 2018
9dc6b7d
[#264] Area.mouse_click_square_area? command's refactoring
acs-l Jun 3, 2018
57cf136
[#265] Definition of a new parameter's type: mouse's button
acs-l Jun 3, 2018
5b11a2a
[#264] Area.mouse_trigger_area? command's refactoring
acs-l Jun 3, 2018
830743f
[#264] Area.mouse_trigger_square_area? command's refactoring
acs-l Jun 3, 2018
1c08552
[#264] Area.mouse_press_area? command's refactoring
acs-l Jun 3, 2018
0da6c49
[#264] Area.mouse_press_square_area? command's refactoring
acs-l Jun 3, 2018
6639f22
[#264] Area.mouse_release_area? command's refactoring
acs-l Jun 3, 2018
302f66c
[#264] Area.mouse_release_square_area? command's refactoring
acs-l Jun 22, 2018
d7dbcf7
[#264] Area.mouse_repeat_area? command's refactoring
acs-l Jun 22, 2018
7ddad22
[#264] Area.mouse_repeat_square_area? command's refactoring
acs-l Jun 22, 2018
6580807
[#264] Declaring aliases for Area related commands
acs-l Jun 22, 2018
e39b9d1
[#265] Removing old Areas' module as it has been fully refactored
acs-l Jun 22, 2018
211c98d
[#264] Initializing Armors related commands refactoring
acs-l Jun 22, 2018
6ac57e8
[#264] Armors.armors_possessed command's refactoring
acs-l Jun 22, 2018
c214658
[#264] Armors.armor_count command's refactoring
acs-l Jun 22, 2018
b87ec63
[#264] Armors.armor_name command's refactoring
acs-l Jun 22, 2018
4875319
[#264] Armors.armor_note command's refactoring
acs-l Jun 22, 2018
cea566d
[#264] Armors.armor_description command's refactoring
acs-l Jun 22, 2018
281cf88
[#264] Armors.armor_icon command's refactoring
acs-l Jun 22, 2018
d353069
[#264] Armors.armor_price command's refactoring
acs-l Jun 22, 2018
412ea0b
[#264] Armors.armor_max_hit_points command's refactoring
acs-l Jun 22, 2018
1600cf0
[#264] Armors.armor_max_magical_points command's refactoring
acs-l Jun 22, 2018
a71e7e1
[#264] Armors.armor_attack_power command's refactoring
acs-l Jun 22, 2018
6e6aeaf
[#264] Armors.armor_defense_power command's refactoring
acs-l Jun 22, 2018
e624866
[#264] Armors.armor_magic_attack_power command's refactoring
acs-l Jun 22, 2018
e5ba23e
[#264] Armors.armor_magic_defense_power command's refactoring
acs-l Jun 22, 2018
8f3e0a6
[#264] Armors.armor_agility command's refactoring
acs-l Jun 22, 2018
065e516
[#264] Armors.armor_luck command's refactoring
acs-l Jun 22, 2018
a7459b7
[#264] Armors.give_armor command's refactoring
acs-l Jun 22, 2018
e8d4bec
[#264] Armors.has_armor? command's refactoring
acs-l Jun 22, 2018
4078b82
[#264] Armors.armor_equiped? command's refactoring
acs-l Jun 22, 2018
cf6055e
[#264] Armors.armor_type command's refactoring
acs-l Jun 22, 2018
1caba80
[#264] Removing Armors.armor_element_rate as the command has been com…
acs-l Jun 22, 2018
5b438e6
[#264] Initializing Camera related commands refactoring
acs-l Jun 27, 2018
4f42620
[#264] Camera.camera_scrolling? command's refactoring
acs-l Jun 27, 2018
108cc07
[#265] Definition of new parameters' types related to real numbers (F…
acs-l Jun 27, 2018
52b34a1
[#264] Camera.camera_scroll command's refactoring
acs-l Jun 27, 2018
8129ccb
[#265][#398] Definition of new parameters' type: easing function
acs-l Jun 27, 2018
ba4f0ea
[#265] Definition of new parameters' type: point's position regarding…
acs-l Jun 28, 2018
14942c9
[#264] Camera.camera_scroll_towards command's refactoring
acs-l Jun 28, 2018
ae2a13f
[#265] Definition of new parameters' type: event's identifier
acs-l Jun 28, 2018
490e17d
[#264] Camera.camera_scroll_towards_event command's refactoring
acs-l Jun 28, 2018
a0114f4
[#264] Camera.camera_scroll_towards_player command's refactoring
acs-l Jun 28, 2018
0d95e1c
[#264] Camera.camera_move_on command's refactoring
acs-l Jun 28, 2018
c4581fb
Re-aligning associations' arrows
acs-l Jun 28, 2018
bd917ec
[#264] Camera.camera_scroll_on command's refactoring
acs-l Jun 28, 2018
e6b753a
[#264] Camera.camera_lock command's refactoring
acs-l Jun 28, 2018
8ed1c9f
[#264] Camera.camera_unlock command's refactoring
acs-l Jun 28, 2018
98249d3
[#264] Camera.camera_locked? command's refactoring
acs-l Jun 28, 2018
2162b51
[#264] Camera.camera_lock_x command's refactoring
acs-l Jun 28, 2018
76a0c86
[#264] Camera.camera_unlock_x command's refactoring
acs-l Jun 28, 2018
b71e83b
[#264] Camera.camera_x_locked? command's refactoring
acs-l Jun 28, 2018
5f2bca2
[#264] Camera.camera_lock_y command's refactoring
acs-l Jun 28, 2018
4be94e0
[#264] Camera.camera_unlock_y command's refactoring
acs-l Jun 28, 2018
3a2f2d2
[#264] Camera.camera_y_locked? command's refactoring
acs-l Jun 28, 2018
2630bb2
[#264] Camera.camera_change_focus command's refactoring
acs-l Jul 1, 2018
6a410c3
[#264] Camera.camera_zoom command's refactoring
acs-l Jul 1, 2018
bb89a39
[#264] Camera.camera_motion_blur command's refactoring
acs-l Jul 1, 2018
c53a9e4
[#265] Removing old Camera's module as it has been fully refactored
acs-l Jul 1, 2018
92df282
[#264] Initializing Clipbloard related commands refactoring
acs-l Jul 1, 2018
d734e70
[#264] Clipboard.clipboard_push_text command's refactoring
acs-l Jul 1, 2018
440cfb3
[#264] Clipboard.clipboard_get_text command's refactoring
acs-l Jul 1, 2018
4343a45
[#264] Clipboard.clipboard_push_command command's refactoring
acs-l Jul 1, 2018
24ae149
[#265] Removing old Clipboard's module as it has been fully refactored
acs-l Jul 1, 2018
dafa616
[#264] Initializing Date related commands refactoring
acs-l Jul 1, 2018
c83d6f1
[#264] Date.time_year command's refactoring
acs-l Jul 1, 2018
1c3d511
[#264] Date.time_month command's refactoring
acs-l Jul 1, 2018
d42d1ce
[#264] Date.time_day command's refactoring
acs-l Jul 1, 2018
f5a54f1
[#264] Date.time_hour command's refactoring
acs-l Jul 1, 2018
36003e3
[#264] Date.time_min command's refactoring
acs-l Jul 1, 2018
516a34e
[#264] Date.time_sec command's refactoring
acs-l Jul 1, 2018
406d209
[#265] Removing old Time's module as it has been fully refactored
acs-l Jul 1, 2018
958fe86
[#264] Initializing Enemy related commands refactoring
acs-l Jul 1, 2018
48fe243
[#265] Definition of new parameters' type: enemy's identifier
acs-l Jul 1, 2018
a68e173
[#264] Enemy.monster_name command's refactoring
acs-l Jul 1, 2018
ebb3633
[#264] Enemy.monster_icon command's refactoring
acs-l Jul 1, 2018
4998d10
[#264] Enemy.monster_description command's refactoring
acs-l Jul 1, 2018
33950bd
[#264] Enemy.monster_note command's refactoring
acs-l Jul 1, 2018
bb1ffde
[#264] Enemy.monster_battler_name command's refactoring
acs-l Jul 1, 2018
c4c1eb0
[#264] Enemy.monster_battler_hue command's refactoring
acs-l Jul 1, 2018
31afc64
[#264] Enemy.monster_max_hp command's refactoring
acs-l Jul 1, 2018
19025ed
[#264] Enemy.monster_max_mp command's refactoring
acs-l Jul 1, 2018
e1741d7
[#264] Enemy.monster_attack_power command's refactoring
acs-l Jul 1, 2018
35e1929
[#264] Enemy.monster_defense_power command's refactoring
acs-l Jul 1, 2018
4814e34
[#264] Enemy.monster_magic_attack_power command's refactoring
acs-l Jul 1, 2018
1e75169
[#263] Fixing issue when the parameter's domain is not given (i.e.: O…
acs-l Jul 2, 2018
34656f0
[#264] Fixing ambiguous call through prefixing the module's name
acs-l Jul 2, 2018
c7c56d0
Temporary commenting out aliases as methods have been removed
acs-l Jul 2, 2018
5eced5b
[#264] Enemy.monster_magic_defense_power command's refactoring
acs-l Jul 6, 2018
71e8fd9
Fixing mistake in documentation's comments
acs-l Jul 6, 2018
c50957a
[#264] Enemy.monster_agility command's refactoring
acs-l Jul 6, 2018
ebe719c
[#264] Enemy.monster_luck command's refactoring
acs-l Jul 6, 2018
ad7b114
[#264] Enemy.monster_give_exp command's refactoring
acs-l Jul 6, 2018
f54cc98
[#264] Enemy.monster_give_gold command's refactoring
acs-l Jul 6, 2018
0585cee
[#264] Enemy.monster_element_rate command's refactoring
acs-l Jul 6, 2018
3588cc1
[#264] Declaring aliases for Enemy related commands
acs-l Jul 6, 2018
aa2ad75
[#264] Initializing Event related commands refactoring
acs-l Jul 6, 2018
e49c053
[#265] Definition of new parameters' type: map's identifier
acs-l Jul 6, 2018
69fc84a
[#265] Definition of new parameters' type: event's page's identifier
acs-l Jul 6, 2018
7d539c7
[#265] Adding execution context as an additional parameter to commands
acs-l Jul 10, 2018
ca049b6
[#264] Event.include_page command's refactoring
acs-l Jul 10, 2018
2e704b6
[#264] Event.event_moving? command's refactoring
acs-l Jul 10, 2018
aafe619
[#265] Providing execution context only if requested
acs-l Jul 10, 2018
285d9b1
[#264] Event.player_moving? command's refactoring
acs-l Jul 10, 2018
9f5f522
[#265] Definition of new parameters' types related to sprites: tone &…
acs-l Jul 24, 2018
fc00157
[#265] Definition of new parameters' type: events' selector
acs-l Jul 24, 2018
50ea7fa
[#264] Event.event_trail command's refactoring
acs-l Jul 24, 2018
8b454dc
Adding missing comma (`,`)
acs-l Jul 24, 2018
aa8e669
Keeping-up with `dev`
acs-l Jul 24, 2018
ed49553
Fixing remnant of merge between `dev` and `refactoring/commands`
acs-l Jul 24, 2018
1f4c044
Merge branch 'master' into refactoring/commands
acs-l Jul 25, 2018
551a528
[#264] Event.pixel_in_event? command's refactoring
acs-l Jul 25, 2018
7d05d66
[#264] Event.pixel_in_player? command's refactoring
acs-l Jul 25, 2018
99221cd
Fixing definition of blending mode's default value
acs-l Jul 25, 2018
0d59d3c
[#265] Definition of new parameters' types related to sprites' opacity
acs-l Jul 25, 2018
178f3ba
[#264] Event.event_opacity command's refactoring
acs-l Jul 25, 2018
c812cae
Updating common events' base
acs-l Jul 25, 2018
b2ca642
[#264] Event.event_tone command's refactoring
acs-l Jul 25, 2018
6fdaab6
[#264] Event.player_tone command's refactoring
acs-l Jul 25, 2018
fd06917
[#264] Event.player_opacity command's refactoring
acs-l Jul 25, 2018
3d648ad
[#265] Definition of the optional counterpart of coordinate
acs-l Jul 25, 2018
a0ca795
[#264] Event.event_ox command's refactoring
acs-l Jul 25, 2018
92c31e9
[#264] Event.event_oy command's refactoring
acs-l Jul 25, 2018
7347658
[#264] Event.player_ox command's refactoring
acs-l Jul 25, 2018
22049b2
[#264] Event.player_oy command's refactoring
acs-l Jul 25, 2018
a712ab7
[#265] Definition of the optional counterpart of positive float
acs-l Jul 25, 2018
9602a1a
[#264] Event.event_zoom_x command's refactoring
acs-l Jul 25, 2018
6d4c544
[#264] Event.event_zoom_y command's refactoring
acs-l Jul 25, 2018
9a211a9
[#264] Event.event_zoom command's refactoring
acs-l Jul 25, 2018
877a0cb
[#264] Event.event_restore_origin command's refactoring
acs-l Jul 25, 2018
e9a0583
[#264] Event.player_restore_origin command's refactoring
acs-l Jul 25, 2018
d99dd1e
[#264] Event.player_zoom_x command's refactoring
acs-l Jul 25, 2018
32ca6bc
[#264] Event.player_zoom_y command's refactoring
acs-l Jul 25, 2018
5a28354
[#264] Event.player_zoom command's refactoring
acs-l Jul 25, 2018
8f63cbe
[#264] Event.player_trail command's refactoring
acs-l Jul 25, 2018
3d31c47
[#264] Event.event_stop_trail command's refactoring
acs-l Jul 25, 2018
2b49b0b
[#264] Event.player_stop_trail command's refactoring
acs-l Jul 25, 2018
25c1460
[#264] Event.event_brutal_stop_trail command's refactoring
acs-l Jul 25, 2018
ec17bfe
[#264] Event.player_brutal_stop_trail command's refactoring
acs-l Jul 25, 2018
f51bfc3
[#265] Adding support to handle variant (or either) types
acs-l Aug 3, 2018
782995f
[#265] Revising vectorized types
acs-l Aug 3, 2018
6e3e283
[#265] Removing useless variadic type's duplication
acs-l Aug 3, 2018
83e14c4
[#264] Handling serialization of variant and vectorized parameters' t…
acs-l Aug 3, 2018
7d02744
[#265] Updating variant and actual arguments' hints in case of errors
acs-l Aug 5, 2018
506d591
[#265] Updating the definition of existing nullable types
acs-l Aug 5, 2018
2ddf44a
[#266] Fixing JSON serialization of variant and vectorized types
acs-l Aug 5, 2018
f242962
[#266] Adding parameters' type's class in documentation's serialization
acs-l Aug 5, 2018
7f7dc53
[#264] Fixing variadic parameter's handling
acs-l Aug 5, 2018
4a21a82
[#265] Definition of a new type which maps `EventPage` objects
acs-l Aug 5, 2018
ca1190e
[#264] Event.page_runnable? command's refactoring
acs-l Aug 5, 2018
1254c62
[#264] Event.invoke_event command's refactoring
acs-l Aug 5, 2018
84bca51
[#264] Event.max_event_id command's refactoring
acs-l Aug 5, 2018
0363fc5
[#264] Event.fresh_event_id command's refactoring
acs-l Aug 5, 2018
9bf7349
[#264] Event.mouse_hover_event? command's refactoring
acs-l Aug 5, 2018
f647e78
[#264] Event.mouse_click_event? command's refactoring
acs-l Aug 5, 2018
d96e126
[#264] Adding Event.mouse_click_event? alias
acs-l Aug 9, 2018
5feb9cc
[#264] Event.mouse_press_event? command's refactoring
acs-l Aug 10, 2018
e73cd1f
[#264] Event.mouse_trigger_event? command's refactoring
acs-l Aug 10, 2018
e760b66
[#264] Event.mouse_repeat_event? command's refactoring
acs-l Aug 10, 2018
8071a14
[#264] Event.mouse_release_event? command's refactoring
acs-l Aug 10, 2018
a04f820
[#264] Event.mouse_hover_player? command's refactoring
acs-l Aug 10, 2018
bbb1491
[#264] Event.mouse_click_player? command's refactoring
acs-l Aug 10, 2018
8919067
[#264] Event.mouse_press_player? command's refactoring
acs-l Aug 10, 2018
267fc3a
[#264] Event.mouse_trigger_player? command's refactoring
acs-l Aug 10, 2018
ed32ed8
[#264] Event.mouse_repeat_player? command's refactoring
acs-l Aug 10, 2018
7c7c7de
[#264] Event.mouse_release_player? command's refactoring
acs-l Aug 10, 2018
8bea5a2
[#264] Event.event_x command's refactoring
acs-l Aug 10, 2018
7c44d78
[#264] Event.event_y command's refactoring
acs-l Aug 10, 2018
85bf421
[#264] Event.event_screen_x command's refactoring
acs-l Aug 10, 2018
95812a4
[#264] Event.event_screen_y command's refactoring
acs-l Aug 10, 2018
58b9498
Fixing commands' calls
acs-l Aug 10, 2018
d83f5d8
[#264] Event.event_pixel_x command's refactoring
acs-l Aug 10, 2018
6835efb
[#264] Event.event_pixel_y command's refactoring
acs-l Aug 10, 2018
deb38f7
[#264] Event.player_x command's refactoring
acs-l Aug 12, 2018
de97da2
[#264] Event.player_y command's refactoring
acs-l Aug 12, 2018
7c3a0b8
[#264] Event.player_screen_x command's refactoring
acs-l Aug 12, 2018
1c12fe9
[#264] Event.player_screen_y command's refactoring
acs-l Aug 12, 2018
9dfc3d6
[#264] Event.player_pixel_x command's refactoring
acs-l Aug 12, 2018
83e4d2b
[#264] Event.player_pixel_y command's refactoring
acs-l Aug 12, 2018
42d7dce
[#264] Event.event_in_screen? command's refactoring
acs-l Aug 12, 2018
c2d3bec
[#264] Event.player_in_screen? command's refactoring
acs-l Aug 12, 2018
cb8ac2e
[#265] Declaring optional counterpart of Direction parameters' type
acs-l Aug 12, 2018
aa9cbac
[#264] Event.event_direction command's refactoring
acs-l Aug 12, 2018
0f67315
[#264] Event.player_direction command's refactoring
acs-l Aug 12, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[#264] Enemy.monster_magic_attack_power command's refactoring
  • Loading branch information
acs-l committed Jul 1, 2018
commit 4814e34cf3d6037b5c484d1be772906326c74e22
1 change: 0 additions & 1 deletion src/Commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2479,7 +2479,6 @@ def monster_battler_dimension(pos)
end
def monster_battler_width(i); monster_battler_dimension(i)[0]; end
def monster_battler_height(i); monster_battler_dimension(i)[1]; end
def monster_magic_attack_power(id); enemy(id).params[4]; end
def monster_magic_defense_power(id); enemy(id).params[5]; end
def monster_agility(id); enemy(id).params[6]; end
def monster_luck(id); enemy(id).params[7]; end
Expand Down
5 changes: 0 additions & 5 deletions src/Doc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3088,11 +3088,6 @@ module Command
register_command :picture, "Command.picture_show_enemy"


link_method_documentation "Command.monster_magic_attack_power",
"renvoie les points d'attaque magique d'un ennemi référencé par son ID",
{ :id => ["ID de l'ennemi", :Fixnum]}, true
register_command :enemy, "Command.monster_magic_attack_power"

link_method_documentation "Command.monster_magic_defense_power",
"renvoie les points de défense magique d'un ennemi référencé par son ID",
{ :id => ["ID de l'ennemi", :Fixnum]}, true
Expand Down
11 changes: 10 additions & 1 deletion src/commands/enemy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,17 @@ module Enemy
enemy(id).params[3]
end

# ------------------------------------------------------------------------
# * Returns the magical attack points points of the given enemy.
# ------------------------------------------------------------------------
Command::declare({:section => self,
:name => :monster_magic_attack_power,
:description => 'Enemy.monster_magic_attack_power',
:parameters => [ENEMY_ID]}) do |id|
enemy(id).params[4]
end

# TODO
# - `monster_magic_attack_power`
# - `monster_magic_defense_power`
# - `monster_agility`
# - `monster_luck`
Expand Down
1 change: 1 addition & 0 deletions src/documentation/doc_fr.properties.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@
'doc.cmd.Enemy.monster_max_mp' => "Renvoie le maximum de points de magie d'un ennemi",
'doc.cmd.Enemy.monster_attack_power' => "Renvoie les points d'attaque d'un ennemi",
'doc.cmd.Enemy.monster_defense_power' => "Renvoie les points de défense d'un ennemi",
'doc.cmd.Enemy.monster_magica_attack_power' => "Renvoie les points d'attaque magique d'un ennemi",

# Parameters
## Map
Expand Down