Cataclysm-DDA icon indicating copy to clipboard operation
Cataclysm-DDA copied to clipboard

[DEBUG] Modify hordes through overmap editor

Open RenechCDDA opened this issue 1 year ago • 2 comments

Summary

Infrastructure "[DEBUG] Modify hordes through overmap editor"

Purpose of change

I need to be able to modify hordes' values to debug them, and to test some possible upcoming content.

Describe the solution

Hook it into the existing overmap editor, and then write a bunch of new code to handle all the horde stuff

Also changed the overmap UI to always enable debug editor functions if debug mode is enabled, for ease of use. You can still access the overmap editor through the debug menu, but you don't have to.

Describe alternatives you've considered

Testing

https://github.com/user-attachments/assets/e4db511c-8bf8-467c-8714-b502da15ff8a

Additional context

PR as originally submitted is not finished. Notably the ability to modify monsters into existing hordes is just plain not implemented. Draft until it's done. (It is done!)

RenechCDDA avatar Sep 07 '24 19:09 RenechCDDA

Spell checker encountered unrecognized words in the in-game text added in this pull request. See below for details.

Click to expand
  • Set behavior to which enum value? Currently %d. \nAccepted values:\n0 = none,\n1 = city,\n2=roam,\n3=nemesis
  • Set horde's boolean values

This alert is automatically generated. You can simply disregard if this is inaccurate, or (optionally) you can also add the new words to tools/spell_checker/dictionary.txt so they will not trigger an alert next time.

Hints for adding a new word to the dictionary
  • If the word is normally in all lowercase, such as the noun word or the verb does, add it in its lower-case form; if the word is a proper noun, such as the surname George, add it in its initial-caps form; if the word is an acronym or has special letter case, such as the acronym CDDA or the unit mW, add it by preserving the case of all the letters. A word in the dictionary will also match its initial-caps form (if the word is in all lowercase) and all-uppercase form, so a word should be added to the dictionary in its normal letter case even if used in a different letter case in a sentence.
  • For a word to be added to the dictionary, it should either be a real, properly-spelled modern American English word, a foreign loan word (including romanized foreign names), or a foreign or made-up word that is used consistently and commonly enough in the game. Intentional misspelling (including eye dialect) of a word should not be added unless it has become a common terminology in the game, because while someone may have a legitimate use for it, another person may spell it that way accidentally.

github-actions[bot] avatar Sep 07 '24 20:09 github-actions[bot]

@Qrox Auto notify failed to notify you. Here is your notification for something you are marked code owner for

RenechCDDA avatar Sep 10 '24 13:09 RenechCDDA