m장 합산 능력치 버그 수정

This commit is contained in:
2019-03-09 01:05:47 +09:00
parent 270c7377de
commit ee9f97f917
2 changed files with 8 additions and 6 deletions
+4 -3
View File
@@ -1978,11 +1978,12 @@ function process_76(&$general) {
$stat_tier1 = GameConst::$defaultStatMax - 10 + rand()%11;
$stat_tier3 = GameConst::$defaultStatMin + rand()%6;
$stat_tier2 = GameConst::$defaultStatTotal - $stat_tier1 - $stat_tier3;
switch(Util::choiceRandomUsingWeight([
$type = Util::choiceRandomUsingWeight([
'power'=>4,
'intel'=>4,
'neutral'=>2
])){
]);
switch($type){
case 'power':
$leader = $stat_tier1;
$power = $stat_tier2;
@@ -2030,7 +2031,7 @@ function process_76(&$general) {
$intel -= $over3;
}
// 낮은 능치쪽으로 합산
if($type == 0) {
if($type == 'power') {
$intel = $intel + $over1 + $over2 + $over3;
} else {
$power = $power + $over1 + $over2 + $over3;
+4 -3
View File
@@ -382,11 +382,12 @@ function process_29(&$general) {
$stat_tier1 = GameConst::$defaultStatMax - 10 + rand()%11;
$stat_tier3 = GameConst::$defaultStatMin + rand()%6;
$stat_tier2 = GameConst::$defaultStatTotal - $stat_tier1 - $stat_tier3;
switch(Util::choiceRandomUsingWeight([
$type = Util::choiceRandomUsingWeight([
'power'=>4,
'intel'=>4,
'neutral'=>2
])){
]);
switch($type){
case 'power':
$leader = $stat_tier1;
$power = $stat_tier2;
@@ -435,7 +436,7 @@ function process_29(&$general) {
$intel -= $over3;
}
// 낮은 능치쪽으로 합산
if($type == 0) {
if($type == 'power') {
$intel = $intel + $over1 + $over2 + $over3;
} else {
$power = $power + $over1 + $over2 + $over3;