tiger-lib 1.18.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
//! Europa Universalis 5 specific [`Item`] functions

use crate::item::Item;

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