-
Notifications
You must be signed in to change notification settings - Fork 81
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
Damaged Wall #3827
base: master
Are you sure you want to change the base?
Damaged Wall #3827
Conversation
config/fxdata/terrain.cfg
Outdated
@@ -200,6 +200,10 @@ IsSafeLand = 0 | |||
IsDiggable = 1 | |||
IsOwnable = 1 | |||
WlbType = 0 | |||
HealthLoss = 10 | |||
DamageTurns = 200 | |||
TurnTo = 10 |
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.
Perhaps better to combine those 3 into one field:
NoIdeaForAname = 10 200 10
?
@@ -2759,6 +2759,7 @@ void update(void) | |||
update_creature_pool_state(); | |||
if ((game.play_gameturn & 0x01) != 0) | |||
update_animating_texture_maps(); | |||
update_terrain(); |
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.
Oof I don't think we want to call this every gameturn?
At least if you drop one next to the wall.
@@ -276,6 +277,76 @@ void update_manufacturing(void) | |||
} | |||
} | |||
|
|||
void update_terrain(void) |
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.
I worry this loop will cause considerable slow down on low specs computer. :/
No description provided.