Added outfit cost
parent
1f2ba92bea
commit
ab17930449
|
@ -1,6 +1,7 @@
|
|||
[outfit."plasma engines"]
|
||||
name = "Plasma Engines"
|
||||
thumbnail = "icon::engine"
|
||||
cost = 30
|
||||
|
||||
desc = """
|
||||
This is the smallest of the plasma propulsion systems produced by
|
||||
|
@ -21,6 +22,7 @@ steering.power = 20
|
|||
[outfit."shield generator"]
|
||||
thumbnail = "icon::shield"
|
||||
name = "Shield Generator"
|
||||
cost = 10
|
||||
|
||||
desc = """
|
||||
This is the standard shield generator for fighters and interceptors,
|
||||
|
@ -40,6 +42,7 @@ shield.delay = 2.0
|
|||
[outfit."blaster"]
|
||||
thumbnail = "icon::blaster"
|
||||
name = "Blaster"
|
||||
cost = 20
|
||||
|
||||
desc = """
|
||||
Although not the most accurate or damaging of weapons, the Energy Blaster is popular because it
|
||||
|
|
|
@ -24,6 +24,7 @@ pub(crate) mod syntax {
|
|||
pub thumbnail: ContentIndex,
|
||||
pub name: String,
|
||||
pub desc: String,
|
||||
pub cost: u32,
|
||||
pub engine: Option<Engine>,
|
||||
pub steering: Option<Steering>,
|
||||
pub space: outfitspace::syntax::OutfitSpace,
|
||||
|
@ -140,6 +141,9 @@ pub struct Outfit {
|
|||
/// This outfit's thumbnail
|
||||
pub thumbnail: Arc<Sprite>,
|
||||
|
||||
/// The cost of this outfit, in credits
|
||||
pub cost: u32,
|
||||
|
||||
/// How much space this outfit requires
|
||||
pub space: OutfitSpace,
|
||||
|
||||
|
@ -324,6 +328,7 @@ impl crate::Build for Outfit {
|
|||
let mut o = Self {
|
||||
index: ContentIndex::new(&outfit_name),
|
||||
display_name: outfit.name,
|
||||
cost: outfit.cost,
|
||||
thumbnail,
|
||||
gun,
|
||||
desc: outfit.desc,
|
||||
|
|
Loading…
Reference in New Issue