1 | function scr_become_light_ch1 |
2 | { |
3 | if (scr_litemcheck_ch1 |
4 | scr_litemget_ch1 |
5 | if (scr_keyitemcheck_ch1 |
6 | { |
7 | if (scr_litemcheck_ch1 |
8 | scr_litemget_ch1 |
9 | } |
10 | if (scr_keyitemcheck_ch1 |
11 | { |
12 | if (scr_litemcheck_ch1 |
13 | scr_litemget_ch1 |
14 | } |
15 | else |
16 | { |
17 | scr_litemremove_ch1 |
18 | } |
19 | global.lhp = ceil(global.hp[1] / global.maxhp[1]) * global.lmaxhp; |
20 | if (global.lhp < 1) |
21 | global.lhp = 1; |
22 | if (global.lhp > global.lmaxhp) |
23 | global.lhp = global.lmaxhp; |
24 | global.lwstrength = 1; |
25 | if (global.charweapon[1] == 1) |
26 | global.lweapon = 2; |
27 | if (global.charweapon[1] == 5) |
28 | global.lweapon = 6; |
29 | if (global.charweapon[1] == 8) |
30 | global.lweapon = 7; |
31 | global.darkzone = 0; |
32 | } |