계략 강화, 탈취량 시간에 따라 증가
This commit is contained in:
@@ -31,9 +31,10 @@ class che_탈취 extends che_화계{
|
|||||||
$commandName = $this->getName();
|
$commandName = $this->getName();
|
||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
|
|
||||||
// 탈취 최대 400 * 8
|
// 탈취 최대 800 * 8 * sqrt(1 + (year - startyear) / 5) / 2
|
||||||
$gold = Util::randRangeInt(GameConst::$sabotageDamageMin, GameConst::$sabotageDamageMax) * $destCity['level'];
|
$yearCoef = sqrt(1 + ($this->env['year'] - $this->env['startyear']) / 5) / 2;
|
||||||
$rice = Util::randRangeInt(GameConst::$sabotageDamageMin, GameConst::$sabotageDamageMax) * $destCity['level'];
|
$gold = Util::randRangeInt(GameConst::$sabotageDamageMin, GameConst::$sabotageDamageMax) * $destCity['level'] * $yearCoef;
|
||||||
|
$rice = Util::randRangeInt(GameConst::$sabotageDamageMin, GameConst::$sabotageDamageMax) * $destCity['level'] * $yearCoef;
|
||||||
|
|
||||||
if($destCity['supply']){
|
if($destCity['supply']){
|
||||||
[$destNationGold, $destNationRice] = $db->queryFirstList('SELECT gold,rice FROM nation WHERE nation=%i', $destNationID);
|
[$destNationGold, $destNationRice] = $db->queryFirstList('SELECT gold,rice FROM nation WHERE nation=%i', $destNationID);
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class GameConstBase
|
|||||||
/** @var int 계략시 최소 수치 감소량*/
|
/** @var int 계략시 최소 수치 감소량*/
|
||||||
public static $sabotageDamageMin = 100;
|
public static $sabotageDamageMin = 100;
|
||||||
/** @var int 계략시 최대 수치 감소량*/
|
/** @var int 계략시 최대 수치 감소량*/
|
||||||
public static $sabotageDamageMax = 500;
|
public static $sabotageDamageMax = 800;
|
||||||
/** @var string 기본 배경색깔 푸른색*/
|
/** @var string 기본 배경색깔 푸른색*/
|
||||||
public static $basecolor = "#000044";
|
public static $basecolor = "#000044";
|
||||||
/** @var string 기본 배경색깔 초록색*/
|
/** @var string 기본 배경색깔 초록색*/
|
||||||
|
|||||||
Reference in New Issue
Block a user