tiger-lib 1.17.0

Library used by the tools ck3-tiger, vic3-tiger, and imperator-tiger. This library holds the bulk of the code for them. It can be built either for ck3-tiger with the feature ck3, or for vic3-tiger with the feature vic3, or for imperator-tiger with the feature imperator, but not both at the same time.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Europa Universalis 5 specific [`Item`] functions

use crate::item::Item;

impl Item {
    /// Returns whether an item type uses the REPLACE/INJECT/CREATE prefixes.
    pub fn injectable(self) -> bool {
        // TODO: EU5 fill in injectable item types
        matches!(self, Item::ScriptValue | Item::ScriptedEffect | Item::ScriptedTrigger)
    }
}