forked from crawl/crawl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a whole new generator for shop names
Since the beginning of time, shop names have been one thing that stayed pretty uninspiring in a game otherwise chock full of very colourful and varied procedural text generators for other random game elements. The old generator consisted of: "<name>'s <type> [Shoppe|Boutique|Emporium|Shop]" And that was it. This commit fixes all that with a brand new and far more colourful generator largely consisting of a nearly 3000-line textdb file. Now many synonyms are used for different shop contents, words for "shop", as well as adding a couple of entirely new paths for shopkeeper names that are rather more memorable than the classic make_name() which is used everywhere (e.g. Pan Lords, artifacts, ghosts...) There are a few grammatical variations on the name structure (e.g. Dave's Weapon Shop vs Weapons By Dave vs Ye Olde Weapon Shop). Names start off fairly straightforward in the early levels but increase in variety and eccentricity based on dungeon level (or player XL for Gozag shops) by varying the length of the generated names, both upwards and downwards. So you end up with very baroque names as well as very short ones. There are enough permutations that no two names are ever likely to be similar over a single game, although if by chance they occasionally are it's enough of a funny coincidence and just makes it look like the shops are competitors or perhaps a chain. This is also something of a flavour enhancement for Gozag as they get some special handling and rather more extravangant shopkeeper names. Vault-defined shop names are left alone and will resort to the old generator where they are partially defined. Support for Gadget shops is included in expectation of them being reinstated in a separate commit.
- Loading branch information
1 parent
f5571fc
commit 6807301
Showing
13 changed files
with
3,059 additions
and
75 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
-- Generates a huge number of shop names to test the generator | ||
-- Runs through the full range of "levels" (we increment 2 levels per dungeon | ||
-- level, so 54), all shop types, and again with Gozag shops | ||
-- Usage: | ||
-- ./crawl -script shopnames 1> shopnames_test.txt | ||
|
||
local shop_types = { | ||
"general", | ||
"antiques", | ||
"weapon", | ||
"antique weapon", | ||
"armour", | ||
"antique armour", | ||
"book", | ||
"scroll", | ||
"distillery", | ||
"jewellery", | ||
"gadget" | ||
} | ||
|
||
for i,shop in ipairs(shop_types) do | ||
print (shop .. ":\n") | ||
for level = 1,54 do | ||
print (level .. ": " .. dgn.shopname(shop, level)) | ||
end | ||
print ("\n" .. shop .. " (Gozag):\n") | ||
for level = 1,54 do | ||
print (level .. ": " .. dgn.shopname(shop, level, true)) | ||
end | ||
print ("\n") | ||
end |
Oops, something went wrong.