mirror of
https://gitlab.com/veloren/veloren.git
synced 2025-07-25 21:02:31 +00:00
fix more typos
This commit is contained in:
@ -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.
|
||||
|
@ -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(),
|
||||
|
@ -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,
|
||||
},
|
||||
|
Reference in New Issue
Block a user