Changeset fa369ed06e573af647397eecbdb1aa7409e31444

Show
Ignore:
Timestamp:
12/23/07 11:59:46 (1 year ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1198407586 +0100
git-parent:

[5bf376f313a666e5a73f3e3f370a25fe178b2676]

git-author:
Christopher Jung <bktheg@web.de> 1198407586 +0100
Message:

GTU: Ersteigerte Schiffe haben nun Nahrung fuer 5 Ticks

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/net/driftingsouls/ds2/server/tick/regular/RTCTick.java

    re87da2b rfa369ed  
    2727import net.driftingsouls.ds2.server.cargo.ResourceEntry; 
    2828import net.driftingsouls.ds2.server.cargo.ResourceList; 
     29import net.driftingsouls.ds2.server.cargo.Resources; 
    2930import net.driftingsouls.ds2.server.comm.PM; 
    3031import net.driftingsouls.ds2.server.config.Faction; 
     
    9899                                long price = entry.getPreis(); 
    99100                                int dropzone = winner.getGtuDropZone(); 
    100                                   
    101                                 Cargo cargo = new Cargo(); 
    102101                         
    103102                                Location loc = Systems.get().system(dropzone).getDropZone(); 
     
    129128                                         
    130129                                        String history = "Indienststellung am "+this.currentTime+" durch "+this.gtuuser.getName()+" (Versteigerung) f&uuml;r "+winner.getName()+" ("+winner.getID()+")\n"; 
     130                                         
     131                                        Cargo cargo = new Cargo(); 
     132                                        cargo.addResource(Resources.NAHRUNG, shiptype.getCrew()*5); 
     133                                        cargo = cargo.cutCargo(shiptype.getCargo()); 
    131134                                         
    132135                                        Ship ship = new Ship(winner); 
     
    293296                                String history = "Indienststellung am "+this.currentTime+" durch "+this.gtuuser.getName()+" (Versteigerung) f&uuml;r "+winner.getName()+" ("+winner.getID()+")\n"; 
    294297 
     298                                cargo.addResource(Resources.NAHRUNG, shipd.getCrew()*5); 
     299                                // Kein cutCargo, da sonst ersteigerte Waren entfernt werden koennten 
     300                                 
    295301                                Ship ship = new Ship(winner); 
    296302                                ship.setName("Verkauft");