Add creature flags to RFR creature raws.

develop
JapaMala 2018-07-28 18:39:45 +05:30
parent 4b64d2dec6
commit 0a0cbdf2de
2 changed files with 6 additions and 0 deletions

@ -749,6 +749,7 @@ message CreatureRaw
optional int32 adultsize = 9;
repeated CasteRaw caste = 10;
repeated TissueRaw tissues = 11;
repeated bool flags = 12;
}
message CreatureRawList

@ -2794,6 +2794,11 @@ static command_result GetPartialCreatureRaws(color_ostream &stream, const ListRe
CopyMat(send_tissue->mutable_material(), orig_tissue->mat_type, orig_tissue->mat_index);
}
for (int i = 0; i <= ENUM_LAST_ITEM(creature_raw_flags); i++)
{
send_creature->add_flags(orig_creature->flags.is_set((creature_raw_flags::creature_raw_flags)i));
}
}
return CR_OK;