変愚蛮怒のメインリポジトリです
Revision | 596cd9d130fdde67663ba938c1533b5683c18121 (tree) |
---|---|
Time | 2019-04-24 22:39:53 |
Author | deskull <deskull@user...> |
Commiter | deskull |
[Refactor] #37353 player-skill.c/h を追加。
@@ -171,6 +171,7 @@ | ||
171 | 171 | <ClCompile Include="..\..\src\patron.c" /> |
172 | 172 | <ClCompile Include="..\..\src\player-damage.c" /> |
173 | 173 | <ClCompile Include="..\..\src\player-effects.c" /> |
174 | + <ClCompile Include="..\..\src\player-skill.c" /> | |
174 | 175 | <ClCompile Include="..\..\src\player-status.c" /> |
175 | 176 | <ClCompile Include="..\..\src\quest.c" /> |
176 | 177 | <ClCompile Include="..\..\src\realm-craft.c" /> |
@@ -324,6 +325,7 @@ | ||
324 | 325 | <ClInclude Include="..\..\src\player-damage.h" /> |
325 | 326 | <ClInclude Include="..\..\src\player-effects.h" /> |
326 | 327 | <ClInclude Include="..\..\src\player-move.h" /> |
328 | + <ClInclude Include="..\..\src\player-skill.h" /> | |
327 | 329 | <ClInclude Include="..\..\src\player-status.h" /> |
328 | 330 | <ClInclude Include="..\..\src\quest.h" /> |
329 | 331 | <ClInclude Include="..\..\src\readdib.h" /> |
@@ -312,6 +312,9 @@ | ||
312 | 312 | <ClCompile Include="..\..\src\mind.c"> |
313 | 313 | <Filter>spells</Filter> |
314 | 314 | </ClCompile> |
315 | + <ClCompile Include="..\..\src\player-skill.c"> | |
316 | + <Filter>player</Filter> | |
317 | + </ClCompile> | |
315 | 318 | </ItemGroup> |
316 | 319 | <ItemGroup> |
317 | 320 | <ClInclude Include="..\..\src\angband.h" /> |
@@ -590,6 +593,9 @@ | ||
590 | 593 | <ClInclude Include="..\..\src\object.h"> |
591 | 594 | <Filter>object</Filter> |
592 | 595 | </ClInclude> |
596 | + <ClInclude Include="..\..\src\player-skill.h"> | |
597 | + <Filter>player</Filter> | |
598 | + </ClInclude> | |
593 | 599 | </ItemGroup> |
594 | 600 | <ItemGroup> |
595 | 601 | <ResourceCompile Include="..\..\src\angband.rc" /> |
@@ -54,7 +54,7 @@ hengband_SOURCES = \ | ||
54 | 54 | projection.h projection.c\ |
55 | 55 | \ |
56 | 56 | player-move.c player-move.h player-damage.c player-damage.h player-status.c player-status.h \ |
57 | - player-effects.c player-effects.h \ | |
57 | + player-effects.c player-effects.h player-skill.c player-skill.h \ | |
58 | 58 | \ |
59 | 59 | quest.h quest.c\ |
60 | 60 | \ |
@@ -30,6 +30,7 @@ | ||
30 | 30 | #include "dungeon-file.h" |
31 | 31 | #include "files.h" |
32 | 32 | #include "birth.h" |
33 | +#include "player-skill.h" | |
33 | 34 | |
34 | 35 | /*! |
35 | 36 | * オートローラーの内容を描画する間隔 / |
@@ -8,6 +8,7 @@ | ||
8 | 8 | #include "player-move.h" |
9 | 9 | #include "player-status.h" |
10 | 10 | #include "player-effects.h" |
11 | +#include "player-skill.h" | |
11 | 12 | #include "object-hook.h" |
12 | 13 | #include "monster.h" |
13 | 14 | #include "monster-status.h" |
@@ -29,6 +29,7 @@ | ||
29 | 29 | #include "avatar.h" |
30 | 30 | #include "player-status.h" |
31 | 31 | #include "player-effects.h" |
32 | +#include "player-skill.h" | |
32 | 33 | #include "object-hook.h" |
33 | 34 | #include "cmd-basic.h" |
34 | 35 | #include "view-mainwindow.h" |
@@ -48,6 +48,7 @@ | ||
48 | 48 | #include "world.h" |
49 | 49 | #include "player-effects.h" |
50 | 50 | #include "player-status.h" |
51 | +#include "player-skill.h" | |
51 | 52 | #include "sort.h" |
52 | 53 | #include "mutation.h" |
53 | 54 | #include "quest.h" |
@@ -2662,41 +2662,8 @@ extern int PlayerUID; | ||
2662 | 2662 | #define PARSE_ERROR_UNDEFINED_TERRAIN_TAG 10 |
2663 | 2663 | #define PARSE_ERROR_MAX 11 |
2664 | 2664 | |
2665 | -#define GINOU_SUDE 0 | |
2666 | -#define GINOU_NITOURYU 1 | |
2667 | -#define GINOU_RIDING 2 | |
2668 | -#define GINOU_SHIELD 3 | |
2669 | -#define GINOU_TEMPMAX 4 | |
2670 | 2665 | #define GINOU_MAX 10 |
2671 | 2666 | |
2672 | -/* Proficiency level */ | |
2673 | -#define EXP_LEVEL_UNSKILLED 0 | |
2674 | -#define EXP_LEVEL_BEGINNER 1 | |
2675 | -#define EXP_LEVEL_SKILLED 2 | |
2676 | -#define EXP_LEVEL_EXPERT 3 | |
2677 | -#define EXP_LEVEL_MASTER 4 | |
2678 | - | |
2679 | -/* Proficiency of weapons and misc. skills (except riding) */ | |
2680 | -#define WEAPON_EXP_UNSKILLED 0 | |
2681 | -#define WEAPON_EXP_BEGINNER 4000 | |
2682 | -#define WEAPON_EXP_SKILLED 6000 | |
2683 | -#define WEAPON_EXP_EXPERT 7000 | |
2684 | -#define WEAPON_EXP_MASTER 8000 | |
2685 | - | |
2686 | -/* Proficiency of riding */ | |
2687 | -#define RIDING_EXP_UNSKILLED 0 | |
2688 | -#define RIDING_EXP_BEGINNER 500 | |
2689 | -#define RIDING_EXP_SKILLED 2000 | |
2690 | -#define RIDING_EXP_EXPERT 5000 | |
2691 | -#define RIDING_EXP_MASTER 8000 | |
2692 | - | |
2693 | -/* Proficiency of spells */ | |
2694 | -#define SPELL_EXP_UNSKILLED 0 | |
2695 | -#define SPELL_EXP_BEGINNER 900 | |
2696 | -#define SPELL_EXP_SKILLED 1200 | |
2697 | -#define SPELL_EXP_EXPERT 1400 | |
2698 | -#define SPELL_EXP_MASTER 1600 | |
2699 | - | |
2700 | 2667 | #define NO_TOWN 6 |
2701 | 2668 | #define SECRET_TOWN 5 |
2702 | 2669 |
@@ -8,6 +8,7 @@ | ||
8 | 8 | #include "quest.h" |
9 | 9 | #include "monster.h" |
10 | 10 | #include "files.h" |
11 | +#include "player-skill.h" | |
11 | 12 | |
12 | 13 | dungeon_grid letter[255]; |
13 | 14 |
@@ -59,6 +59,7 @@ | ||
59 | 59 | #include "monsterrace-hook.h" |
60 | 60 | #include "floor-save.h" |
61 | 61 | #include "feature.h" |
62 | +#include "player-skill.h" | |
62 | 63 | |
63 | 64 | #include "view-mainwindow.h" |
64 | 65 | #include "dungeon-file.h" |
@@ -93,7 +93,7 @@ extern const int monk_ave_damage[PY_MAX_LEVEL+1][3]; | ||
93 | 93 | extern const concptr game_inscriptions[]; |
94 | 94 | extern const kamae kamae_shurui[MAX_KAMAE]; |
95 | 95 | extern const kamae kata_shurui[MAX_KATA]; |
96 | -extern const concptr exp_level_str[5]; | |
96 | + | |
97 | 97 | |
98 | 98 | extern const concptr ident_info[]; |
99 | 99 | extern const mbe_info_type mbe_info[]; |
@@ -46,6 +46,7 @@ | ||
46 | 46 | #include "dungeon-file.h" |
47 | 47 | #include "init.h" |
48 | 48 | #include "monster-spell.h" |
49 | +#include "player-skill.h" | |
49 | 50 | |
50 | 51 | |
51 | 52 | /* |
@@ -65,6 +65,7 @@ | ||
65 | 65 | #include "cmd-pet.h" |
66 | 66 | #include "dungeon-file.h" |
67 | 67 | #include "files.h" |
68 | +#include "player-skill.h" | |
68 | 69 | |
69 | 70 | |
70 | 71 | /* |
@@ -16,14 +16,12 @@ | ||
16 | 16 | |
17 | 17 | #include "artifact.h" |
18 | 18 | #include "cmd-pet.h" |
19 | -#include "player-damage.h" | |
20 | 19 | #include "monsterrace-hook.h" |
21 | 20 | #include "melee.h" |
22 | 21 | #include "monster.h" |
23 | 22 | #include "monster-status.h" |
24 | 23 | #include "monster-spell.h" |
25 | 24 | #include "avatar.h" |
26 | -#include "player-status.h" | |
27 | 25 | #include "realm-hex.h" |
28 | 26 | #include "object-flavor.h" |
29 | 27 | #include "object-hook.h" |
@@ -33,6 +31,9 @@ | ||
33 | 31 | #include "spells.h" |
34 | 32 | #include "files.h" |
35 | 33 | #include "player-effects.h" |
34 | +#include "player-skill.h" | |
35 | +#include "player-damage.h" | |
36 | +#include "player-status.h" | |
36 | 37 | #include "view-mainwindow.h" |
37 | 38 | |
38 | 39 |
@@ -5,6 +5,7 @@ | ||
5 | 5 | #include "object-hook.h" |
6 | 6 | #include "monster.h" |
7 | 7 | #include "artifact.h" |
8 | +#include "player-skill.h" | |
8 | 9 | |
9 | 10 | /*! |
10 | 11 | * @brief 対象のアイテムが矢やクロスボウの矢の材料になるかを返す。/ |
@@ -0,0 +1,12 @@ | ||
1 | +#include "angband.h" | |
2 | +#include "player-skill.h" | |
3 | + | |
4 | +/*! | |
5 | + * @brief 技能値到達表記テーブル | |
6 | + */ | |
7 | +const concptr exp_level_str[5] = | |
8 | +#ifdef JP | |
9 | +{ "[初心者]", "[入門者]", "[熟練者]", "[エキスパート]", "[達人]" }; | |
10 | +#else | |
11 | +{"[Unskilled]", "[Beginner]", "[Skilled]", "[Expert]", "[Master]"}; | |
12 | +#endif |
@@ -0,0 +1,38 @@ | ||
1 | +#pragma once | |
2 | + | |
3 | +extern const concptr exp_level_str[5]; | |
4 | + | |
5 | +#define GINOU_SUDE 0 | |
6 | +#define GINOU_NITOURYU 1 | |
7 | +#define GINOU_RIDING 2 | |
8 | +#define GINOU_SHIELD 3 | |
9 | +#define GINOU_TEMPMAX 4 | |
10 | + | |
11 | + | |
12 | +/* Proficiency level */ | |
13 | +#define EXP_LEVEL_UNSKILLED 0 | |
14 | +#define EXP_LEVEL_BEGINNER 1 | |
15 | +#define EXP_LEVEL_SKILLED 2 | |
16 | +#define EXP_LEVEL_EXPERT 3 | |
17 | +#define EXP_LEVEL_MASTER 4 | |
18 | + | |
19 | +/* Proficiency of weapons and misc. skills (except riding) */ | |
20 | +#define WEAPON_EXP_UNSKILLED 0 | |
21 | +#define WEAPON_EXP_BEGINNER 4000 | |
22 | +#define WEAPON_EXP_SKILLED 6000 | |
23 | +#define WEAPON_EXP_EXPERT 7000 | |
24 | +#define WEAPON_EXP_MASTER 8000 | |
25 | + | |
26 | +/* Proficiency of riding */ | |
27 | +#define RIDING_EXP_UNSKILLED 0 | |
28 | +#define RIDING_EXP_BEGINNER 500 | |
29 | +#define RIDING_EXP_SKILLED 2000 | |
30 | +#define RIDING_EXP_EXPERT 5000 | |
31 | +#define RIDING_EXP_MASTER 8000 | |
32 | + | |
33 | +/* Proficiency of spells */ | |
34 | +#define SPELL_EXP_UNSKILLED 0 | |
35 | +#define SPELL_EXP_BEGINNER 900 | |
36 | +#define SPELL_EXP_SKILLED 1200 | |
37 | +#define SPELL_EXP_EXPERT 1400 | |
38 | +#define SPELL_EXP_MASTER 1600 |
@@ -3,6 +3,8 @@ | ||
3 | 3 | |
4 | 4 | #include "player-move.h" |
5 | 5 | #include "player-status.h" |
6 | +#include "player-effects.h" | |
7 | +#include "player-skill.h" | |
6 | 8 | #include "floor.h" |
7 | 9 | #include "floor-events.h" |
8 | 10 | #include "feature.h" |
@@ -19,7 +21,6 @@ | ||
19 | 21 | #include "realm-hex.h" |
20 | 22 | #include "cmd-pet.h" |
21 | 23 | #include "cmd-spell.h" |
22 | -#include "player-effects.h" | |
23 | 24 | |
24 | 25 | /*! |
25 | 26 | * @var horror_desc |
@@ -28,6 +28,7 @@ | ||
28 | 28 | #include "spells.h" |
29 | 29 | #include "player-status.h" |
30 | 30 | #include "player-effects.h" |
31 | +#include "player-skill.h" | |
31 | 32 | #include "realm-hex.h" |
32 | 33 | #include "grid.h" |
33 | 34 |
@@ -7,6 +7,7 @@ | ||
7 | 7 | #include "artifact.h" |
8 | 8 | #include "avatar.h" |
9 | 9 | #include "player-status.h" |
10 | +#include "player-skill.h" | |
10 | 11 | #include "object-hook.h" |
11 | 12 | #include "floor.h" |
12 | 13 | #include "grid.h" |
@@ -36,6 +36,7 @@ | ||
36 | 36 | #include "player-move.h" |
37 | 37 | #include "player-status.h" |
38 | 38 | #include "player-effects.h" |
39 | +#include "player-skill.h" | |
39 | 40 | |
40 | 41 | #include "floor-events.h" |
41 | 42 | #include "feature.h" |
@@ -37,6 +37,7 @@ | ||
37 | 37 | #include "floor-save.h" |
38 | 38 | #include "files.h" |
39 | 39 | #include "player-effects.h" |
40 | +#include "player-skill.h" | |
40 | 41 | #include "view-mainwindow.h" |
41 | 42 | #include "mind.h" |
42 | 43 | #include "wild.h" |
@@ -3819,16 +3819,6 @@ const kamae kata_shurui[MAX_KATA] = | ||
3819 | 3819 | #endif |
3820 | 3820 | }; |
3821 | 3821 | |
3822 | -/*! | |
3823 | - * @brief 技能値到達表記テーブル | |
3824 | - */ | |
3825 | -const concptr exp_level_str[5]= | |
3826 | -#ifdef JP | |
3827 | -{"[初心者]", "[入門者]", "[熟練者]", "[エキスパート]", "[達人]"}; | |
3828 | -#else | |
3829 | -{"[Unskilled]", "[Beginner]", "[Skilled]", "[Expert]", "[Master]"}; | |
3830 | -#endif | |
3831 | - | |
3832 | 3822 | |
3833 | 3823 | /*! |
3834 | 3824 | * @brief シンボル解説テーブル / |
@@ -47,6 +47,7 @@ | ||
47 | 47 | |
48 | 48 | #include "h-type.h" |
49 | 49 | #include "defines.h" |
50 | +//#include "player-skill.h" | |
50 | 51 | |
51 | 52 | /*! |
52 | 53 | * @struct feature_state |
@@ -20,6 +20,7 @@ | ||
20 | 20 | #include "artifact.h" |
21 | 21 | #include "player-status.h" |
22 | 22 | #include "player-effects.h" |
23 | +#include "player-skill.h" | |
23 | 24 | |
24 | 25 | #include "spells.h" |
25 | 26 | #include "spells-object.h" |