[Help] Impassible tiles and Geo Eff
Impassible tiles and Geo Eff Posted on: 01/12/2015 10:29pm
Quote Post
Never let a computer tell me shit.

It seems like impassible tiles (eg water) count against your geoeffeciency even though you cant conquer them even if you wanted to. Is this intentional? Am I even correct?




I use this AoB tool to make all the AoBs I post. Try the online version if you dont feel like downloading it.
"Obviously, windows are central to Windows. They are so important that they named the operating system after them. But what is a window?"

RE: Impassible tiles and Geo Eff Posted on: 01/13/2015 12:46am
Quote Post
TIM the Enchanter
Level: 1
ADR Info

Yup.  That's the intention.  If you build around them, they count against your efficiency.

When you get into upper levels, you'll unlock Air Combat, which will negate a bunch of open faces.  100 Air Combat grants a 200 bonus.  Once I get myself there, I'll be able to test and balance.  I have a feeling it should be about 5 tiles per AC point.  Also note that the attribute display isn't up, and techs don't have info on them yet, so you really have no way of knowing what your bonuses are yet.





Everything's coming up KongHack!

"When you know nothing matters, the universe is yours" ~Rick Sanchez

RE: Impassible tiles and Geo Eff Posted on: 01/13/2015 1:42am
Quote Post
Never let a computer tell me shit.

damn. I gambled on "having water in your village is a good thing". guess I lost.




I use this AoB tool to make all the AoBs I post. Try the online version if you dont feel like downloading it.
"Obviously, windows are central to Windows. They are so important that they named the operating system after them. But what is a window?"

RE: Impassible tiles and Geo Eff Posted on: 01/13/2015 2:28am
Quote Post
disgruntled old man
kolonelkadat Posted on: 01/12/2015 8:42pm

damn. I gambled on "having water in your village is a good thing". guess I lost.



You and me both...




New to Kong Hack and want to learn the basics? Check out the [Kong Hack 101] and the [Hacking 101].
Wanna learn how we make the hacks? Start with getting [the tools], then check these out: [AoB tutorial] | [.sol guide] | [Unity3d tutorial] | kadat's [video tutorials]
And if you don't already have it, check out the [Kong Hack Ultra Trainer]. You'll be glad you did!
RE: Impassible tiles and Geo Eff Posted on: 01/13/2015 3:58am
Quote Post
TIM the Enchanter
Level: 1
ADR Info

Here's the current set of logic!

 


$sql = 'SELECT map_x, map_y FROM War_Map WHERE nation_id = :nation_id';
$query = $COMMON->DB()->prepare($sql);
$query->execute(array(':nation_id' => $this->nation_id));
$counter = 0;
$coords = array();
while($row = $query->fetch())
{
++$counter;
$coords[$row['map_x']][$row['map_y']] = 1;
}
if($counter < 50)
{
$this->set('nation_geo_eff',1);
return 1;
}
$faces = 0;
foreach($coords as $x => $batch)
{
foreach($batch as $y => $junk)
{
$hits = 4;
if(isset($coords[$x + 1][$y]))
{
--$hits;
}
if(isset($coords[$x - 1][$y]))
{
--$hits;
}
if(isset($coords[$x][$y - 1]))
{
--$hits;
}
if(isset($coords[$x][$y + 1]))
{
--$hits;
}
$faces += $hits;
}
}

// Each air combat removes 2 faces worth of damage
// Defensive counts towards this value
// Every 500 tiles adds 1 to the bonus value
$bonus = 50 + $this->nation_attr_d_air_combat + $this->nation_attr_g_air_combat + floor($counter / 500);
if($faces < $bonus)
{
$this->set('nation_geo_eff',1);
return 1;
}
//Need to base this on the total divided out.
$value = ($counter - ($faces/2) + $bonus) / $counter;
if($value < 0.01)
{
$this->set('nation_geo_eff',0.01);
return 0.01;
}
if($value > 1)
{
$this->set('nation_geo_eff',1);
return 1;
}
$this->set('nation_geo_eff',round($value,2));
return round($value,2);




Everything's coming up KongHack!

"When you know nothing matters, the universe is yours" ~Rick Sanchez