Skip to content

Commit

Permalink
Add: 757
Browse files Browse the repository at this point in the history
  • Loading branch information
CoconutKR committed Aug 1, 2024
1 parent 40feab1 commit 38c2bdb
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 0 deletions.
Binary file added src/Aircraft/Boeing/B757/B757_300/B757_300.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions src/Aircraft/Boeing/B757/B757_300/B757_300.pnml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*--------------------------------------------------------------------
B787-8 Dreamliner
--------------------------------------------------------------------*/
// Graphics
#include "B757_300_graphic.pnml"

// Switch
#include "B757_300_switch.pnml"

/*--------------------------------------------------------------------
항공기정보
--------------------------------------------------------------------*/
item(FEAT_AIRCRAFT, B757_300, 7111){
property {
name: string(STR_B757_300_NAME);
climates_available: ALL_CLIMATES;
introduction_date: date(1999, 1, 1);
aircraft_type: AIRCRAFT_TYPE_LARGE;
sprite_id: SPRITE_ID_NEW_AIRCRAFT;
variant_group: B757_200;

//spec
speed: 926km/h;

//Model
model_life: VEHICLE_NEVER_EXPIRES;
vehicle_life: 30;
retire_early: 0;
reliability_decay: 0;

//Cargo
passenger_capacity: 295;
mail_capacity: 20;
acceleration: 27;
refittable_cargo_classes: NO_CARGO_CLASS;
non_refittable_cargo_classes: NO_CARGO_CLASS;
cargo_allow_refit: [PASS];
cargo_disallow_refit: [];

//Costs
refit_cost: 100;

//Flags
misc_flags: bitmask(AIRCRAFT_FLAG_2CC);
sound_effect: SOUND_JET;
}

graphics {
default: sw_B757_300;
purchase: sw_B757_300_purchase;
loading_speed: 26;
cost_factor: 890;
running_cost_factor: 120;
cargo_subtype_text: sw_Boeing_757_300_cargo_subtype_text;
}
}
26 changes: 26 additions & 0 deletions src/Aircraft/Boeing/B757/B757_300/B757_300_graphic.pnml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*--------------------------------------------------------------------
Graphics
--------------------------------------------------------------------*/

/*--------------------------------------------------------------------
Purchase Info
--------------------------------------------------------------------*/
spriteset(set_B757_300_purchase, "src\Aircraft\Boeing\B757\B757_300\B757_300.png"){
tmpl_B787_10_purchase(0, 0)
}

/*--------------------------------------------------------------------
1. Boeing 757-300 Manufacturer
--------------------------------------------------------------------*/

spriteset(set_B757_300, "src\Aircraft\Boeing\B757\B757_300\B757_300.png"){
tp_B787_10(0, 0)
}


/*--------------------------------------------------------------------
구매정보
--------------------------------------------------------------------*/
switch(FEAT_TRAINS, SELF, sw_B757_300_purchase, cargo_subtype) {
set_B757_300_purchase;
}
14 changes: 14 additions & 0 deletions src/Aircraft/Boeing/B757/B757_300/B757_300_switch.pnml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*--------------------------------------------------------------------
스위치
--------------------------------------------------------------------*/
switch(FEAT_AIRCRAFT, SELF, sw_Boeing_757_300_cargo_subtype_text, cargo_subtype) {
1: return string(STR_REFIT_LIVERY_Boeing); // 제조사
2: return string(STR_REFIT_LIVERY_Boeing); // 대한항공
return string(STR_REFIT_LIVERY_Boeing);
}

switch(FEAT_AIRCRAFT, SELF, sw_B757_300, cargo_subtype) {
1: set_B757_300; // 제조사
2: set_B757_300; // 대한항공
set_B757_300;
}
1 change: 1 addition & 0 deletions src/Aircraft_list.pnml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
#include "Aircraft/Boeing/B757/B757_200PF/B757_200PF.pnml" //7108
#include "Aircraft/Boeing/B757/B757_200SF/B757_200SF.pnml" //7109
#include "Aircraft/Boeing/B757/B757_200PCF/B757_200PCF.pnml" //7110
#include "Aircraft/Boeing/B757/B757_300/B757_300.pnml" //7111

// Sorting
#include "sort.pnml"
1 change: 1 addition & 0 deletions src/sort.pnml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ B757_200M, //7107
B757_200PF, //7108
B757_200SF, //7109
B757_200PCF, //7110
B757_300, //7111
B767_200, //7064
B767_200ER, //7065
B767_200BDSF, //7066
Expand Down

0 comments on commit 38c2bdb

Please sign in to comment.