summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/newgame.cc
Commit message (Collapse)AuthorAgeFilesLines
* Apply r6498 to 0.4.j-p-e-g2008-07-111-43/+60
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6499 c06c8d41-db1a-0410-9941-cceddc491573
* Apply some more commits to bring 0.4 up to date.j-p-e-g2008-07-101-57/+314
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6484 c06c8d41-db1a-0410-9941-cceddc491573
* Apply recent commits to 0.4, including Matthew's evil zoo fix.j-p-e-g2008-07-091-26/+31
| | | | | | | Now how do I change the properties to native again? git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6465 c06c8d41-db1a-0410-9941-cceddc491573
* Apply Abyss unlinked item fix and the changes to the starting equipmentj-p-e-g2008-07-081-17/+54
| | | | | | | to 0.4. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6456 c06c8d41-db1a-0410-9941-cceddc491573
* Apply tutorial fixes as well as the macro/wininit path to 0.4.j-p-e-g2008-07-081-1/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6448 c06c8d41-db1a-0410-9941-cceddc491573
* Disable Shoals for 0.4.j-p-e-g2008-07-071-1/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6445 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2012088: Monsters "following" you from the Abyss to the wrong level.j-p-e-g2008-07-071-6/+7
| | | | | | | A few fixes to starting equipment and skills. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6440 c06c8d41-db1a-0410-9941-cceddc491573
* Update a number of secondary choice restrictions (books and weapons).j-p-e-g2008-07-051-42/+28
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6406 c06c8d41-db1a-0410-9941-cceddc491573
* Fix Death Knights of Yredelemnul starting with a book of Necromancy.j-p-e-g2008-07-051-4/+5
| | | | | | | (Reading "Something Awful" really pays off sometimes. :) ) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6405 c06c8d41-db1a-0410-9941-cceddc491573
* Send wizards into the Dungeon wearing a proper wizard hat. David isj-p-e-g2008-07-041-1/+2
| | | | | | | | right in that should not be too powerful for this comparatively weak class, and that it is immensely flavourful. :) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6397 c06c8d41-db1a-0410-9941-cceddc491573
* Restrict DrMo, unrestrict DrFE and DrIE. Disallow the creation of capsj-p-e-g2008-07-041-6/+11
| | | | | | | | | for Gladiators - species who can't wear helmets just don't get them now. Uncomment debugging option in monster placement. However useful (and necessary) it may be at the moment, it has no place in trunk. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6389 c06c8d41-db1a-0410-9941-cceddc491573
* Tweak change log a bit and add new commands to 034_changes.txt. Arej-p-e-g2008-07-041-5/+4
| | | | | | | | there more new commands I've forgotten? Please don't include wizmode commands as they don't matter during normal game. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6387 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2008767: "random" not working for book choice optionj-p-e-g2008-07-031-7/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6375 c06c8d41-db1a-0410-9941-cceddc491573
* Reorder species in newgame.cc (clean-up, no coding changes).j-p-e-g2008-07-031-119/+119
| | | | | | | | | Add known weapons of holy wrath as useless items for undead, likewise with weapons of pain for characters without Necromancy skill. (The latter only applies if the item is not an artefact.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6374 c06c8d41-db1a-0410-9941-cceddc491573
* If a monster wields a non-branded launcher there is no message, so wej-p-e-g2008-07-021-30/+5
| | | | | | | | | | | *know* it is a plain one -> it is now auto-identified which enables us to autoidentify branded ammo shot from it. Fix Trolls starting out wearing bucklers and remove the stat checks during (normal) random weapon choice. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6333 c06c8d41-db1a-0410-9941-cceddc491573
* Remove darts for Spriggan Thieves (who get a rod instead).j-p-e-g2008-07-021-2/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6327 c06c8d41-db1a-0410-9941-cceddc491573
* Fix compilation.dolorous2008-07-021-2/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6310 c06c8d41-db1a-0410-9941-cceddc491573
* Reorder classes in yet another part of newgame.cc. Also, make DrBej-p-e-g2008-07-011-164/+167
| | | | | | | restricted. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6309 c06c8d41-db1a-0410-9941-cceddc491573
* Fix minotaurs being able to wear helmets by initializing mutationsj-p-e-g2008-07-011-4/+4
| | | | | | | before generating the starting equipment. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6308 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2008-07-011-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6304 c06c8d41-db1a-0410-9941-cceddc491573
* Implement the rest of the starting set changes. I sure hope I got all ofj-p-e-g2008-07-011-267/+215
| | | | | | | them. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6303 c06c8d41-db1a-0410-9941-cceddc491573
* Reorder classes in _give_items_skills() in newgame.cc to match that ofj-p-e-g2008-07-011-519/+518
| | | | | | | | the selection screen. Should be more sensible and easier to read this way. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6294 c06c8d41-db1a-0410-9941-cceddc491573
* Implement the first part of the overhauled starting equipment andj-p-e-g2008-07-011-289/+270
| | | | | | | | | | | | | skills (non-magic characters): Fighter, Gladiator, Berserker, Paladin, Priest, Chaos Knight (*), Death Knight, Healer, Thief, Assassin, Hunter *: Other than in the final layout (v4?) Trolls and Ghouls don't get "claws" as a weapon choice here because I had no idea what to do with the to-be-distributed enchantment points if they don't get a weapon. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6293 c06c8d41-db1a-0410-9941-cceddc491573
* [2007262] Fixing typo where hunters were only getting 1 arrow.ennewalker2008-07-011-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6278 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fixes.dolorous2008-06-301-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6267 c06c8d41-db1a-0410-9941-cceddc491573
* Force beams of digging (wand or spell, known or unknown, also /randomj-p-e-g2008-06-301-0/+15
| | | | | | | | | | effects) to ignore the endpoint target ('.') in favour of continuing until the end of the range. Unrestrict tridents for some more species. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6265 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2006479: worn unidentified =PR marking poisonous food as safe. j-p-e-g2008-06-301-1/+3
| | | | | | | Fix 2006014: character selection crashing after non-random book choice. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6248 c06c8d41-db1a-0410-9941-cceddc491573
* Enable Chaos Knights of Lugonu starting out in the Abyss.j-p-e-g2008-06-301-11/+36
| | | | | | | | | | | | | | | | | | | I've marked these characters with GDT_GAME_START, so that * the player starts out on an altar to Lugonu * there's an exit back to the Dungeon near-by * returning into the Dungeon always places them into the entry vault on level 1 * no abyssal runes are ever generated * item generation matches that of level 1 * monster spawn rates are that of the orb run to enforce a quick return into the Dungeon Once the player returns to the Dungeon (via an exit or with Lugonu's first power) char_direction is properly set to GDT_DESCENDING and from then on the game continues as if they had started in the Dungeon. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6245 c06c8d41-db1a-0410-9941-cceddc491573
* Fix good random secondary choices during character selection.j-p-e-g2008-06-291-8/+11
| | | | | | | | Re-enable quivering with '(' - still buggy, and I'm trying to work out why, but at least it works for some ammo now. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6218 c06c8d41-db1a-0410-9941-cceddc491573
* Add spacing fix.dolorous2008-06-281-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6181 c06c8d41-db1a-0410-9941-cceddc491573
* AutoID amulet of resist slowing when quaffing !slowing ("You feelj-p-e-g2008-06-271-49/+99
| | | | | | | | | | | lethargic.") Allow selection of "good random" choices for secondary choices, as well. Some of the main combinations might still have to be modified (Kenku Gladiator? really?) Apart from that, we're all set... git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6174 c06c8d41-db1a-0410-9941-cceddc491573
* Move secondary choice validity checks (gods, books, weapons) intoj-p-e-g2008-06-271-202/+151
| | | | | | | | | | | | | subfunctions of their own and use them as necessary. Has the side effect of showing Beogh as invalid choice for non-orc priests and tridents as invalid choice for small race Gladiators. Does not yet handle good random choices. All gods are now unrestricted (if not outright banned, of course), and Necromancy has been unrestricted for a few more species. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6172 c06c8d41-db1a-0410-9941-cceddc491573
* Add a new command for firing without quivering on 'F'.j-p-e-g2008-06-271-85/+99
| | | | | | | Use puff of fire/ice tiles for ammo of flame/ice being fired. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6169 c06c8d41-db1a-0410-9941-cceddc491573
* Fix a bug in monster summoning that was causing crashes, for examplej-p-e-g2008-06-261-0/+3
| | | | | | | | | | when attempting to cast Shadow Creatures in a bazaar (which is bound to fail, anyway). I guess it would have also caused crashes anywhere else where the level was devoid of monsters and creating one failed - for whatever reason. I don't actually know how likely that combination is. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6151 c06c8d41-db1a-0410-9941-cceddc491573
* Move around numerous restrictions in the secondary choices duringj-p-e-g2008-06-261-35/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | character selection. For weapons, I've applied the following rules: * If there are significant differences between the aptitudes for the different starting weapons, only unrestrict the best ones. * If all aptitudes are identical and <= 100, unrestrict all of them. * If all aptitudes are identical but > 100, leave all of them restricted. * If all aptitudes are really bad, but one of them is significantly better (say, 110 compared to 140) unrestrict that one. * For non-Kobold gladiators, use spear restriction value for tridents. For books, I've similarly used the aptitudes for Fire/Ice/Summonings. I've tried to apply similar reasonings for Necromancy vs. Yredelemnul (Invocations), but because Invocations is internally boosted few species are even remotely as good in Necromancy as Invocations, so that doesn't really work. I don't understand the logic used to decide which species work good with Xom as opposed to Makhleb. The plan is to allow players to get an idea about the strengths and weaknesses of their chosen character from the choices offered alone, and to later be able to move these checks into functions of their own and then use them for differentiating between random choices and good random choices, like for species/class. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6150 c06c8d41-db1a-0410-9941-cceddc491573
* Disallow quivering equipped items. (You can still (fi)re your wieldedj-p-e-g2008-06-261-1/+0
| | | | | | | | weapon if you insist, you just can't quiver it.) And another general clean-up. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6149 c06c8d41-db1a-0410-9941-cceddc491573
* Make mummy death curses only happen if the mummy wasn't summoned. j-p-e-g2008-06-261-8/+6
| | | | | | | (BR 2002296) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6148 c06c8d41-db1a-0410-9941-cceddc491573
* Fix the character selecting omitting letters for restricted classes (asj-p-e-g2008-06-261-84/+86
| | | | | | | | | | opposed to banned ones). Tweak the code to enforce wearable body armour and shield types for all species. I'm afraid the skills need to be adjusted as well, probably in more detail, but I'm rather clueless on that account. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6147 c06c8d41-db1a-0410-9941-cceddc491573
* Misc. minor cleanups. (Yes, a huge amount of them but still...)j-p-e-g2008-06-261-0/+7
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6146 c06c8d41-db1a-0410-9941-cceddc491573
* Apply a patch by Rob Grant (spoondrift) that enables all combinations ofj-p-e-g2008-06-251-610/+888
| | | | | | | | | | | | species/class except those that are outright impossible (because of god restrictions). When choosing a character, you can pick any random character or one of the recommended combinations. This does not take (un)restricted choices for weapons/books/gods into account. Apart from that, it's pretty good, though we might want to (un)restrict some combinations. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6142 c06c8d41-db1a-0410-9941-cceddc491573
* For jewellery with pluses and wands, only make an ident note when thezelgadis2008-06-191-2/+1
| | | | | | | | | | | | first item of the type is identified, not when the charges/pluses of any item of the type is identified. Make sure that artefacts have nothing to do with the identification level of jewellery by making versions of set_ident_type() and get_ident_type() which accept a full item_def as a parameter. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5973 c06c8d41-db1a-0410-9941-cceddc491573
* Recalculate permanent mutations when changing species, but leave non-permanentzelgadis2008-06-121-3/+2
| | | | | | | mutations in place. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5753 c06c8d41-db1a-0410-9941-cceddc491573
* Commit a few changes, mostly clean-up.j-p-e-g2008-06-011-4/+4
| | | | | | | | | | | | | * Modify tile_show_items setting in tutorial to (hopefully) show corpses again. * Change skill_exp_needed to use the level input rather than decreasing the passed in parameter, esp. when it was mostly called in the form skill_exp_needed(x + 1) anyway. I was trying to find out what went wrong in BR 1929156 but I can't work out the formula. :( git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5421 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2008-06-011-5/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5413 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fixes.dolorous2008-05-311-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5358 c06c8d41-db1a-0410-9941-cceddc491573
* Update documentation on coding conventions, and apply a few of them. :)j-p-e-g2008-05-271-7/+7
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5295 c06c8d41-db1a-0410-9941-cceddc491573
* Yet another session of comment/whitespace cleanups.j-p-e-g2008-05-271-20/+21
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5291 c06c8d41-db1a-0410-9941-cceddc491573
* Better support for settings files that include other files:dshaligram2008-05-261-6/+22
| | | | | | | | | | | | | | | | | | | | | | | - Files can be included as "include foo" in .crawlrc instead of using the Lua call: : crawl.read_options('foo'). include foo and the Lua crawl.read_options('foo') are not equivalent - Lua only runs after the start of a new game, which is too late for some option settings. - Crawl searches for included files in this sequence: - Absolute paths: use the path directly (but not if DATA_DIR_PATH is set, since we don't want Crawl to read arbitrary files on multiuser systems). - Search relative to the including file. - Search relative to any -rcdir(s) provided. - Search in the data file search path. - The data file search path now includes settings/ for when we move rc stuff to settings/ .gitignore: ignore saves and morgue dirs correctly. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5256 c06c8d41-db1a-0410-9941-cceddc491573
* Force fleeing monsters to "turn to fight" before breathing at you.j-p-e-g2008-05-251-33/+31
| | | | | | | | (Fixes 1967981: TSO punishes fighting back against "helpless" fleeing monsters.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5236 c06c8d41-db1a-0410-9941-cceddc491573
* Change SP_GOLDEN_DRACONIAN to SP_YELLOW_DRACONIAN, for consistency.dolorous2008-05-241-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5215 c06c8d41-db1a-0410-9941-cceddc491573