Changeset fa369ed06e573af647397eecbdb1aa7409e31444
- 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
| re87da2b |
rfa369ed |
|
| 27 | 27 | import net.driftingsouls.ds2.server.cargo.ResourceEntry; |
|---|
| 28 | 28 | import net.driftingsouls.ds2.server.cargo.ResourceList; |
|---|
| | 29 | import net.driftingsouls.ds2.server.cargo.Resources; |
|---|
| 29 | 30 | import net.driftingsouls.ds2.server.comm.PM; |
|---|
| 30 | 31 | import net.driftingsouls.ds2.server.config.Faction; |
|---|
| … | … | |
| 98 | 99 | long price = entry.getPreis(); |
|---|
| 99 | 100 | int dropzone = winner.getGtuDropZone(); |
|---|
| 100 | | |
|---|
| 101 | | Cargo cargo = new Cargo(); |
|---|
| 102 | 101 | |
|---|
| 103 | 102 | Location loc = Systems.get().system(dropzone).getDropZone(); |
|---|
| … | … | |
| 129 | 128 | |
|---|
| 130 | 129 | String history = "Indienststellung am "+this.currentTime+" durch "+this.gtuuser.getName()+" (Versteigerung) fü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()); |
|---|
| 131 | 134 | |
|---|
| 132 | 135 | Ship ship = new Ship(winner); |
|---|
| … | … | |
| 293 | 296 | String history = "Indienststellung am "+this.currentTime+" durch "+this.gtuuser.getName()+" (Versteigerung) für "+winner.getName()+" ("+winner.getID()+")\n"; |
|---|
| 294 | 297 | |
|---|
| | 298 | cargo.addResource(Resources.NAHRUNG, shipd.getCrew()*5); |
|---|
| | 299 | // Kein cutCargo, da sonst ersteigerte Waren entfernt werden koennten |
|---|
| | 300 | |
|---|
| 295 | 301 | Ship ship = new Ship(winner); |
|---|
| 296 | 302 | ship.setName("Verkauft"); |
|---|