Skip to content

Commit

Permalink
Add: Tu204-100
Browse files Browse the repository at this point in the history
  • Loading branch information
CoconutKR committed Aug 1, 2024
1 parent 38c2bdb commit 4a7c970
Show file tree
Hide file tree
Showing 9 changed files with 108 additions and 0 deletions.
1 change: 1 addition & 0 deletions lang/english.lng
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ STR_ATR_72_500F_NAME :[AWAS] ATR 72-500F
STR_ATR_72_600_NAME :[AWAS] ATR 72-600
STR_ATR_72_600F_NAME :[AWAS] ATR 72-600F
STR_DC_9_30_NAME :[AWAS] McDonnell Douglas DC-9-30
STR_Tu204_100_NAME :[AWAS] Tupolev Tu-204-100

# Parameters

Expand Down
1 change: 1 addition & 0 deletions lang/korean.lng
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ STR_ATR_72_500F_NAME :[AWAS] ATR 72-500F
STR_ATR_72_600_NAME :[AWAS] ATR 72-600
STR_ATR_72_600F_NAME :[AWAS] ATR 72-600F
STR_DC_9_30_NAME :[AWAS] 맥도넬 더글라스 DC-9-30
STR_Tu204_100_NAME :[AWAS] 투폴레프 Tu-204-100

# Parameters

Expand Down
Binary file added src/Aircraft/Tupolev/Tu204/Tu204_100/Airkoryo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions src/Aircraft/Tupolev/Tu204/Tu204_100/Tu204_100.pnml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*--------------------------------------------------------------------
Tu-204-100
--------------------------------------------------------------------*/
// Graphics
#include "Tu204_100_graphic.pnml"

// Switch
#include "Tu204_100_switch.pnml"

/*--------------------------------------------------------------------
항공기정보
--------------------------------------------------------------------*/
item(FEAT_AIRCRAFT, Tu204_100, 7112){
property {
name: string(STR_Tu204_100_NAME);
climates_available: ALL_CLIMATES;
introduction_date: date(1993, 1, 1);
aircraft_type: AIRCRAFT_TYPE_LARGE;
sprite_id: SPRITE_ID_NEW_AIRCRAFT;

//spec
speed: 926km/h;

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

//Cargo
passenger_capacity: 200;
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_Tu204_100;
purchase: sw_Tu204_100_purchase;
loading_speed: 26;
cost_factor: 890;
running_cost_factor: 120;
cargo_subtype_text: sw_Tu204_100_cargo_subtype_text;
}
}
35 changes: 35 additions & 0 deletions src/Aircraft/Tupolev/Tu204/Tu204_100/Tu204_100_graphic.pnml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*--------------------------------------------------------------------
Graphics
--------------------------------------------------------------------*/

/*--------------------------------------------------------------------
Purchase Info
--------------------------------------------------------------------*/
spriteset(set_Tu204_100_purchase, "src\Aircraft\Tupolev\Tu204\Tu204_100\Tu204_100.png"){
tmpl_B757_200_purchase(0, 0)
}

/*--------------------------------------------------------------------
1. Tupolev Tu-206-100 Manufacturer
--------------------------------------------------------------------*/

spriteset(set_Tu204_100, "src\Aircraft\Tupolev\Tu204\Tu204_100\Tu204_100.png"){
tp_B757_200(0, 0)
}

/*--------------------------------------------------------------------
2. Tupolev Tu-206-100 Air Koryo
--------------------------------------------------------------------*/

spriteset(set_Tu204_100_airkoryo, "src\Aircraft\Tupolev\Tu204\Tu204_100\Airkoryo.png"){
tp_B757_200(0, 0)
}



/*--------------------------------------------------------------------
구매정보
--------------------------------------------------------------------*/
switch(FEAT_TRAINS, SELF, sw_Tu204_100_purchase, cargo_subtype) {
set_Tu204_100_purchase;
}
14 changes: 14 additions & 0 deletions src/Aircraft/Tupolev/Tu204/Tu204_100/Tu204_100_switch.pnml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*--------------------------------------------------------------------
스위치
--------------------------------------------------------------------*/
switch(FEAT_AIRCRAFT, SELF, sw_Tu204_100_cargo_subtype_text, cargo_subtype) {
1: return string(STR_REFIT_LIVERY_Tupolev); // Manufacturer
2: return string(STR_REFIT_LIVERY_Airkoryo); // Korean Air
return string(STR_REFIT_LIVERY_Tupolev);
}

switch(FEAT_AIRCRAFT, SELF, sw_Tu204_100, cargo_subtype) {
1: set_Tu204_100; // Manufacturer
2: set_Tu204_100_airkoryo; // AIR KORYO
set_Tu204_100;
}
1 change: 1 addition & 0 deletions src/Aircraft_list.pnml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
#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
#include "Aircraft/Tupolev/Tu204/Tu204_100/Tu204_100.pnml" //7112

// 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 @@ -113,5 +113,6 @@ A380_800, //7010
Concorde, //7072
ATR_72_500, //7008
DC_9_30, //7009
Tu204_100, //7112

]);

0 comments on commit 4a7c970

Please sign in to comment.