-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pawn ai #8
Conversation
let delta = goal.translation - transform.translation; | ||
let distance = delta.length(); | ||
|
||
trace!("Distance to {:?}: {}", std::any::type_name::<T>(), distance); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не имеет обозначения кто вызывает этот трейс, и из-за этого в процессе дебага будет довольно бесполезен.
} | ||
|
||
if action.is_cancelled() { | ||
debug!("Movement to {:?} is cancelled", std::any::type_name::<T>()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Добавь идентификацию процесса поиска.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Мб я просто удалю весь трейс, раз он выглядит ненужным?
ctrl.is_sleeping = true; | ||
} | ||
|
||
trace!("Sleeping..."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Идентификацию актора
ctrl.color = SLEEP_COLOR; | ||
|
||
if fatigue.current <= sleep.until { | ||
debug!("Woke up well-rested!"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Идентификацию актора
} | ||
|
||
if action.is_cancelled() { | ||
debug!("Sleep was interrupted. Still tired."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Идентификацию актора
if action.is_executing() { | ||
inventory.money += inventory.items as u32; | ||
inventory.items = 0.0; | ||
debug!("Sold! Money: {}", inventory.money); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Идентификацию транзакции
} | ||
|
||
if action.is_cancelled() { | ||
debug!("Selling was interrupted. Still need to work."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Идентификацию транзакции и актора
В большей степени это просто примеры, чтоб оно двигалось и работало.