Skip to content

Commit e97ff53

Browse files
committed
Report NPCs without AI packages
1 parent 29b4f0d commit e97ff53

4 files changed

Lines changed: 8 additions & 2 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "StandardsValidator"
3-
version = "2.18.0"
3+
version = "2.19.0"
44
edition = "2021"
55

66
[dependencies]

WARNINGS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ This NPC knows a spell that is culturally or geographically inappropriate.
144144
This NPC is a vampire but does not use the correct vampire head for its race.
145145
NPC vampires that do not need to switch to a mortal appearance should use their race's vampire head as their default head to ensure they always look like vampires.
146146

147+
### Does not have any AI packages
148+
Even stationary NPCs should have a Wander package so they play idle animations.
149+
147150
## Keys
148151
A misc item is a key if it has the key flag. This is a property of the record and determines if it can be sold to merchants and detected by Detect Key.
149152

src/validators/npc.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ impl Handler<'_> for NpcValidator {
6868
npc.id
6969
);
7070
}
71+
if npc.ai_packages.is_empty() {
72+
println!("Npc {} does not have any AI packages", npc.id);
73+
}
7174
}
7275
check_racial_animations(npc);
7376
}

0 commit comments

Comments
 (0)