fix more typos

This commit is contained in:
Isse
2024-11-07 01:18:42 +01:00
parent c2bff5a860
commit e8b6d2c087
3 changed files with 5 additions and 5 deletions

View File

@ -54,7 +54,7 @@ pub enum ReportKind {
killer: Option<Actor>,
},
Theft {
theif: Actor,
thief: Actor,
/// Where the theft happened.
site: Option<SiteId>,
/// What was stolen.

View File

@ -1352,7 +1352,7 @@ fn check_inbox<S: State>(ctx: &mut NpcCtx) -> Option<impl Action<S>> {
}
},
ReportKind::Theft {
theif,
thief,
site,
sprite,
} => {
@ -1362,7 +1362,7 @@ fn check_inbox<S: State>(ctx: &mut NpcCtx) -> Option<impl Action<S>> {
{
// TODO: Don't hardcode sentiment change.
ctx.sentiments
.toward_mut(theif)
.toward_mut(thief)
.change_by(-0.2, Sentiment::VILLAIN);
ctx.known_reports.insert(report_id);
@ -1377,7 +1377,7 @@ fn check_inbox<S: State>(ctx: &mut NpcCtx) -> Option<impl Action<S>> {
if ctx.time_of_day.0 - report.at_tod.0 < REPORT_RESPONSE_TIME {
break Some(
just(move |ctx, _| {
ctx.controller.say(theif, Content::localized(phrase))
ctx.controller.say(thief, Content::localized(phrase))
})
.r()
.l(),

View File

@ -59,7 +59,7 @@ fn on_theft(ctx: EventCtx<ReportEvents, OnTheft>) {
if !nearby.is_empty() {
let report = data.reports.create(Report {
kind: ReportKind::Theft {
theif: ctx.event.actor,
thief: ctx.event.actor,
site: ctx.event.site,
sprite: ctx.event.sprite,
},