Skip to content

Commit

Permalink
update structures
Browse files Browse the repository at this point in the history
handle renaming of caste_raw::gender
  • Loading branch information
BenLubar committed Jun 30, 2020
1 parent a9f219b commit d13e5a3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion library/xml
2 changes: 1 addition & 1 deletion plugins/remotefortressreader/remotefortressreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2685,7 +2685,7 @@ static command_result GetPartialCreatureRaws(color_ostream &stream, const ListRe

send_caste->add_child_name(orig_caste->child_name[0]);
send_caste->add_child_name(orig_caste->child_name[1]);
send_caste->set_gender(orig_caste->gender);
send_caste->set_gender(orig_caste->sex);

for (size_t partIndex = 0; partIndex < orig_caste->body_info.body_parts.size(); partIndex++)
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/tweak/tweaks/tradereq-pet-gender.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct pet_gender_hook : df::viewscreen_topicmeeting_takerequestsst {
vector<int16_t>& castes = entity->resources.animals.pet_castes;
for (int i = (good_idx / 17) * 17, y = 4; i < (good_idx / 17) * 17 + 17 && size_t(i) < races.size(); i++, y++) {
int x = 30 + 1 + world->raws.creatures.all[races[i]]->caste[castes[i]]->caste_name[0].size();
bool male = (bool)world->raws.creatures.all[races[i]]->caste[castes[i]]->gender;
bool male = world->raws.creatures.all[races[i]]->caste[castes[i]]->sex == pronoun_type::he;
OutputString((i == good_idx) ? COLOR_WHITE : COLOR_GREY,
x, y, male ? "\013" : "\014");
}
Expand Down
2 changes: 1 addition & 1 deletion scripts

0 comments on commit d13e5a3

Please sign in to comment.