fix some names in ItemCreator
This commit is contained in:
+4
-4
@@ -328,7 +328,7 @@ ItemData ItemCreator::check_rate_and_create_rare_item(
|
||||
}
|
||||
|
||||
this->clear_item_if_restricted(item);
|
||||
this->set_item_unidentified_or_present_flags_if_unsealable(item);
|
||||
this->set_item_kill_count_if_unsealable(item);
|
||||
return item;
|
||||
}
|
||||
|
||||
@@ -390,9 +390,9 @@ void ItemCreator::deduplicate_weapon_bonuses(ItemData& item) const {
|
||||
}
|
||||
}
|
||||
|
||||
void ItemCreator::set_item_unidentified_or_present_flags_if_unsealable(ItemData& item) const {
|
||||
void ItemCreator::set_item_kill_count_if_unsealable(ItemData& item) const {
|
||||
if (this->item_parameter_table->is_unsealable_item(item)) {
|
||||
item.set_unidentified_or_present_flag(0);
|
||||
item.set_sealed_item_kill_count(0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -552,7 +552,7 @@ void ItemCreator::generate_common_item_variances(
|
||||
}
|
||||
|
||||
this->clear_item_if_restricted(item);
|
||||
this->set_item_unidentified_or_present_flags_if_unsealable(item);
|
||||
this->set_item_kill_count_if_unsealable(item);
|
||||
}
|
||||
|
||||
void ItemCreator::generate_common_armor_or_shield_type_and_variances(
|
||||
|
||||
+1
-1
@@ -122,7 +122,7 @@ private:
|
||||
|
||||
void generate_rare_weapon_bonuses(ItemData& item, uint32_t random_sample);
|
||||
void deduplicate_weapon_bonuses(ItemData& item) const;
|
||||
void set_item_unidentified_or_present_flags_if_unsealable(ItemData& item) const;
|
||||
void set_item_kill_count_if_unsealable(ItemData& item) const;
|
||||
void set_item_unidentified_flag_if_challenge(ItemData& item) const;
|
||||
void set_tool_item_amount_to_1(ItemData& item) const;
|
||||
|
||||
|
||||
+1
-1
@@ -104,7 +104,7 @@ void ItemData::clear_mag_stats() {
|
||||
|
||||
|
||||
|
||||
void ItemData::set_unidentified_or_present_flag(uint16_t v) {
|
||||
void ItemData::set_sealed_item_kill_count(uint16_t v) {
|
||||
this->data1[10] = (v >> 8) | 0x80;
|
||||
this->data1[11] = v;
|
||||
}
|
||||
|
||||
+1
-1
@@ -80,7 +80,7 @@ struct ItemData { // 0x14 bytes
|
||||
void assign_mag_stats(const ItemMagStats& mag);
|
||||
void clear_mag_stats();
|
||||
|
||||
void set_unidentified_or_present_flag(uint16_t v);
|
||||
void set_sealed_item_kill_count(uint16_t v);
|
||||
uint8_t get_tool_item_amount() const;
|
||||
void set_tool_item_amount(uint8_t amount);
|
||||
int16_t get_armor_or_shield_defense_bonus() const;
|
||||
|
||||
Reference in New Issue
Block a user