View previous topic :: View next topic |
Author |
Message |
khaibar Advanced
Joined: 14 Dec 2007 Posts: 1141
|
Posted: Sat Oct 06, 2012 5:16 am Post subject: CODE: non-bandit killed on Rynn drop supplies by non-bandits |
|
|
file: process_turn.php
insert on line 5075
Code: | // insert a supply drop in its place
if ( ($planet_escort=="Y") AND ( $unitdata[$weapon->target_id]["is_bandit"] == "N") AND ($unitdata[$weapon->target_id]["is_salvageable"]=="Y" ) AND ($unitdata[$weapon->i_on_unit]["is_bandit"]=="N" ) ) {
$new_relic = Array();
$relicQuads = Array();
$relic_x = $unitdata[$weapon->target_id]['x_pos'];
$relic_y = $unitdata[$weapon->target_id]['y_pos'];
$relic_sector = "'".$unitdata[$weapon->target_id]['c_sector']."'";
$relic_quadrant = "'".($unitdata[$weapon->target_id]['c_quadrant']."'";
$my_relic = "(".$relic_x.",".$relic_y.",".$relic_sector.",".$relic_quadrant.",".$planetid.",'Y')";
if (!in_array($relic_quadrant,$relicQuads)) { $relic = 1; } // Wut iz dis?
$new_relic[] = $my_relic;
$relicQuads[] = $relic_quadrant;
$new_relic = implode(",",$new_relic);
//Insert supplies dropped by dead unit
$sql = "INSERT INTO deployed_relics (x_pos,y_pos,c_sector,c_quadrant,i_planet,is_supplies) VALUES ".$new_relic;
$res =& $db->query($sql, Array() );
if (DB::isError($res)) { ReportDBError($res); }
unset($relic_x,$relic_y,$relic_sector,$my_relic,$new_relic,$relicQuads);
} |
each dead non-bandit drops 1 supply.
used with the escorts provide fps update, this can lead to some battles.
the check for salvageable is to prevent firestorm probe acti abuse
Ticket link: https://sourceforge.net/p/dropshock/tickets/24/
Edit: sorry guys it was outdated, version on sourceforge had an extra condition that limits the supply drop to pvp kills
Last edited by khaibar on Wed Dec 12, 2012 9:08 am; edited 1 time in total |
|
Back to top |
|
 |
khaibar Advanced
Joined: 14 Dec 2007 Posts: 1141
|
Posted: Mon Dec 10, 2012 1:07 am Post subject: |
|
|
bumping for council |
|
Back to top |
|
 |
Walterohdim Site Admin

Joined: 15 Jun 2006 Posts: 1629 Location: Somewhere with lots of doors
|
Posted: Mon Dec 10, 2012 2:33 pm Post subject: |
|
|
This one also really splits the council members so I really don't see it passing as is. I am really not sure how I feel about it. I really don't see how the command award would really be that much. I really don't see even scout kills really being that much of an issue. I know in order to hit an LE I often need to use a lot of command worth of spamm.
Walterohdim _________________ Wannabee historian of Tinywarz. Through the building of myth we will build community. M. Scott Peck
 |
|
Back to top |
|
 |
Dark Leth Council Member
Joined: 05 Jul 2005 Posts: 1498
|
Posted: Mon Dec 10, 2012 8:29 pm Post subject: |
|
|
I think chaining supply runs and increased command values might be more effective, but I could support this if we made sure bandit behavior was such that it wasn't easily abused for farming. |
|
Back to top |
|
 |
sirstephen Hopeless Romantic
Joined: 01 Jun 2008 Posts: 181
|
Posted: Wed Dec 12, 2012 12:07 am Post subject: |
|
|
i'm going to abstain from voting, as i've dropped to rynn like 3 times, and don't understand the planet particularly well. If forced to vote, i will probably vote yes, as i know the planet is dead, and people need a reason to drop. |
|
Back to top |
|
 |
khaibar Advanced
Joined: 14 Dec 2007 Posts: 1141
|
Posted: Wed Dec 12, 2012 9:06 am Post subject: |
|
|
Dark Leth wrote: | I think chaining supply runs and increased command values might be more effective, but I could support this if we made sure bandit behavior was such that it wasn't easily abused for farming. |
I am not sure I understand what you mean.
Hang on a sec i think this is outdated, the ticket on sourceforge was modified
This only applies if killer is NOT A BANDIT
in other words, a PVP kill |
|
Back to top |
|
 |
|