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

CODE: Salvaged units show # of slots

 
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: Thu Dec 20, 2012 2:55 am    Post subject: CODE: Salvaged units show # of slots Reply with quote

Files: process_turn.php

on line ~3700

before

Code:
checkUsername($unitdata[$effect->i_target]["i_owner"]);
         
$msgText = "<frunit>".$unitdata[$effect->i_actor]['i_type_id']."</frunit><DIV CLASS='unitDivLR'>[<font class='helptext'>".$unitdata[$effect->i_actor]["crew_name"]."</font>] <font class='helptextb'>salvaged</font> </DIV><".$en_type.$unitdata[$effect->i_target]["c_type"].">".$unitdata[$effect->i_target]['i_type_id']."</".$en_type.$unitdata[$effect->i_target]["c_type"]."><DIV CLASS='unitDivLR'>".$varT." from <font class='alerttextb'>".$userdata[($unitdata[$effect->i_target]["i_owner"])]["s_name"]."</font></DIV>";



after

Code:
checkUsername($unitdata[$effect->i_target]["i_owner"]);
if($unitdata[$effect->i_target]["is_bandit"] == "Y")
   $modT = " [<font class='helptextb'>".$NPC_slots." Slots</font>]"; // we don't have id of inserted record, can get but use $NPC_slots anyway
else
  {
    $dataslots =& $db->getRow("SELECT i_mod_slots FROM units WHERE id=? ",array($unitdata[$effect->i_target]["unit_id"]), DB_FETCHMODE_OBJECT);
    if (DB::isError($dataslots )) { ReportDBError($dataslots ); }
    $modT = " [<font class='helptextb'>".$dataslots->i_mod_slots." Slots</font>]";
  }
$msgText = "<frunit>".$unitdata[$effect->i_actor]['i_type_id']."</frunit><DIV CLASS='unitDivLR'>[<font class='helptext'>".$unitdata[$effect->i_actor]["crew_name"]."</font>] <font class='helptextb'>salvaged</font> </DIV><".$en_type.$unitdata[$effect->i_target]["c_type"].">".$unitdata[$effect->i_target]['i_type_id']."</".$en_type.$unitdata[$effect->i_target]["c_type"]."><DIV CLASS='unitDivLR'>".$varT."".$modT." from <font class='alerttextb'>".$userdata[($unitdata[$effect->i_target]["i_owner"])]["s_name"]."</font></DIV>";


Ticket link: https://sourceforge.net/p/dropshock/tickets/34/


particularly helpful when salvaging bandits and want to know their number of slots since it's hard to know when u UD due to the 100 or so of their type. Unless it's 4s u can't know if it was 2s or 1s
Back to top
View user's profile Send private message
Dark Leth
Council Member


Joined: 05 Jul 2005
Posts: 1498

PostPosted: Thu Dec 20, 2012 9:11 am    Post subject: Reply with quote

Support.
Back to top
View user's profile Send private message
sirstephen
Hopeless Romantic


Joined: 01 Jun 2008
Posts: 181

PostPosted: Thu Dec 20, 2012 10:45 am    Post subject: Reply with quote

yes
Back to top
View user's profile Send private message AIM Address
khaibar
Advanced


Joined: 14 Dec 2007
Posts: 1141

PostPosted: Thu Dec 27, 2012 3:35 am    Post subject: Reply with quote

pushed

so is this a no or a yes >.>
Back to top
View user's profile Send private message
SpaceGhost
Mentor


Joined: 07 Sep 2007
Posts: 57

PostPosted: Thu Dec 27, 2012 9:39 am    Post subject: Reply with quote

Support
Thanks SpaceGhost
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: Thu Dec 27, 2012 6:02 pm    Post subject: Reply with quote

Support more info is always a good thing
_________________
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: Thu Dec 27, 2012 11:30 pm    Post subject: Reply with quote

This carries. Someone please update on SF.
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