Skip to content
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

Special Diggers #3209

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open

Special Diggers #3209

wants to merge 21 commits into from

Conversation

PieterVdc
Copy link
Member

No description provided.

@yani
Copy link
Contributor

yani commented Oct 16, 2024

Creature list needs to be updated when the command is used.

dungeon->creatr_list_start;
dungeon->digger_list_start;

Possibly the code to start the list is at set_first_creature(). But this should be able to be refreshed during the map.

Rewriting this part and calling a list refresh when changing roaming status should also fix #3364

@PieterVdc PieterVdc marked this pull request as ready for review October 21, 2024 13:43
@PieterVdc PieterVdc marked this pull request as draft October 21, 2024 13:43
@PieterVdc PieterVdc marked this pull request as ready for review October 28, 2024 09:35
@PieterVdc PieterVdc marked this pull request as draft October 28, 2024 16:44
@PieterVdc PieterVdc marked this pull request as ready for review October 28, 2024 16:44
@PieterVdc PieterVdc marked this pull request as draft October 28, 2024 16:51
@PieterVdc PieterVdc marked this pull request as ready for review October 28, 2024 16:51
@@ -855,7 +860,7 @@ TbBool parse_creaturemodel_attributes_blocks(long crtr_model,char *buf,long len,
game.conf.crtr_conf.spectator_breed = crtr_model;
}
// Set creature start states based on the flags
if ((crconf->model_flags & CMF_IsSpecDigger) != 0)
if ((crconf->model_flags & (CMF_IsSpecDigger|CMF_IsDiggingCreature)) != 0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do the evil_start_state and good_start_state also need to be cleaned up here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how so? good in this context should technically be roaming but think it's fine as is

@@ -1210,6 +1209,7 @@ TbBool cmd_exec(PlayerNumber plyr_idx, char *msg)
}
}
}
//todo replace with any on digger_list
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you forget this, or is this for a future PR?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's just for cheats, so yeah could be tackled at some point but really not critical at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants