FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CODE: non-bandit killed on Rynn drop supplies by non-bandits

 
Post new topic   Reply to topic    Drop Shock Forum Index -> Open Source
View previous topic :: View next topic  
Author Message
khaibar
Advanced


Joined: 14 Dec 2007
Posts: 1141

PostPosted: Sat Oct 06, 2012 5:16 am    Post subject: CODE: non-bandit killed on Rynn drop supplies by non-bandits Reply with quote

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
View user's profile Send private message
khaibar
Advanced


Joined: 14 Dec 2007
Posts: 1141

PostPosted: Mon Dec 10, 2012 1:07 am    Post subject: Reply with quote

bumping for council
Back to top
View user's profile Send private message
Walterohdim
Site Admin


Joined: 15 Jun 2006
Posts: 1629
Location: Somewhere with lots of doors

PostPosted: Mon Dec 10, 2012 2:33 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Dark Leth
Council Member


Joined: 05 Jul 2005
Posts: 1498

PostPosted: Mon Dec 10, 2012 8:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
sirstephen
Hopeless Romantic


Joined: 01 Jun 2008
Posts: 181

PostPosted: Wed Dec 12, 2012 12:07 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
khaibar
Advanced


Joined: 14 Dec 2007
Posts: 1141

PostPosted: Wed Dec 12, 2012 9:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Drop Shock Forum Index -> Open Source All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group