dfhack
dfhack copied to clipboard
Canonicalize T_ types
Standardize types according to DF headers
here are the types currently in use by scripts:
$ fgrep -R .T_ * | sed -r 's/.*[[ @(=,]([^ ]+\.T_[^ .,):]+).*/\1/' | sort -u
df.activity_event_performancest.T_participant_actions
df.building_bridgest.T_direction
df.building_civzonest.T_zone_settings.T_pit_pond
df.caravan_state.T_trade_state
df.embark_item_choice.T_list
df.global.T_cursor
df.historical_figure_info.T_known_info
df.historical_figure_info.T_reputation
df.historical_figure_info.T_skills
df.history_event_body_abusedst.T_abuse_data.T_Piled.T_pile_type
df.history_event_body_abusedst.T_abuse_type
df.history_event_body_abusedst.T_props
df.job_art_specification.T_type
df.job_item_ref.T_role
df.manager_order_condition_item.T_compare_type
df.manager_order_condition_order.T_condition
df.manager_order.T_frequency
df.mandate.T_mode
df.plotinfost.T_alerts.T_list
df.ui_hotkey.T_cmd
df.ui_look_list.T_items.T_type
df.ui_unit_view_mode.T_value
df.unit_inventory_item.T_mode
df.unit_personality.T_dreams
df.unit_personality.T_emotions
df.unit_personality.T_needs
df.unit_preference.T_type
df.unit.T_counters.T_soldier_mood
df.unit.T_job
df.unit_wound.T_parts
df.viewscreen_choose_start_sitest.T_find_results
df.viewscreen_titlest.T_menu_line_id
df.viewscreen_workshop_profilest.T_tab
df.world.T_arena_spawn.T_tame
df.world.T_cur_savegame
vstype.T_equip.T_mode
vstype.T_page
And here are the scripts that use them:
$ fgrep -Rl .T_ *
add-thought.lua
assign-preferences.lua
caravan.lua
devel/export-dt-ini.lua
devel/save-version.lua
devel/find-offsets.lua
devel/sc.lua
docs/modtools/pref-edit.rst
do-job-now.lua
exportlegends.lua
gui/sandbox.lua
gui/clone-uniform.lua
gui/choose-weapons.lua
gui/advfort.lua
gui/civ-alert.lua
internal/confirm/specs.lua
internal/quickfort/zone.lua
internal/quickfort/build.lua
internal/caravan/movegoods.lua
internal/caravan/common.lua
internal/advfort/advfort_items.lua
load-save.lua
makeown.lua
modtools/pref-edit.lua
modtools/create-unit.lua
modtools/item-trigger.lua
modtools/moddable-gods.lua
modtools/equip-item.lua
names.lua
pref-adjust.lua
remove-stress.lua
stripcaged.lua
uniform-unstick.lua
workorder.lua
These should have all been resolved during the structure reorganization.