Character creation. More...
|void||player_init (struct player *p)|
|void||player_generate (struct player *p, const struct player_race *r, const struct player_class *c, bool old_history)|
|This fleshes out a full player based on the choices currently made, and so is called whenever things like race or class are chosen. More...|
|char *||get_history (struct history_chart *h)|
|Get the racial history, and social class, using the "history charts". More...|
|void||wield_all (struct player *p)|
|Try to wield everything wieldable in the inventory. More...|
|void||do_cmd_birth_init (struct command *cmd)|
|void||do_cmd_birth_reset (struct command *cmd)|
|void||do_cmd_choose_race (struct command *cmd)|
|void||do_cmd_choose_class (struct command *cmd)|
|void||do_cmd_buy_stat (struct command *cmd)|
|void||do_cmd_sell_stat (struct command *cmd)|
|void||do_cmd_reset_stats (struct command *cmd)|
|void||do_cmd_roll_stats (struct command *cmd)|
|void||do_cmd_prev_stats (struct command *cmd)|
|void||do_cmd_choose_name (struct command *cmd)|
|void||do_cmd_choose_history (struct command *cmd)|
|void||do_cmd_accept_character (struct command *cmd)|
|char *||find_roman_suffix_start (const char *buf)|
Roman numeral functions, for dynastic successionsMore...
Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke
This work is free software; you can redistribute it and/or modify it under the terms of either:
a) the GNU General Public License as published by the Free Software Foundation, version 2, or
b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.
References character_generated, cmd_disable_repeat(), do_randart(), EVENT_LEAVE_BIRTH, event_signal(), flavor_init(), get_money(), history_add(), history_clear(), ignore_birth_init(), player::is_dead, message_add(), player::obj_k, OPT, options_init_cheat(), player_embody(), player_learn_everything(), player_outfit(), player_spells_init(), player_upkeep::playing, randint0, roll_hp(), seed_flavor, seed_randart, store_reset(), object::to_a, object::to_d, object::to_h, and player::upkeep.
References EVENT_AC, EVENT_GOLD, EVENT_HP, event_signal(), event_signal_birthpoints(), EVENT_STATS, get_ahw(), get_bonuses(), get_history(), get_stats(), player_race::history, player::history, i, points_left, points_spent, player::race, rolled_stats, save_roller_data(), STAT_MAX, stats, and string_free().
|char* find_roman_suffix_start||(||const char *||buf||)|
Find the start of a possible Roman numerals suffix by going back from the end of the string to a space, then checking that all the remaining chars are valid Roman numerals.
Return the start position, or NULL if there isn't a valid suffix.
|char* get_history||(||struct history_chart *||h||)|
|void player_generate||(||struct player *||p,|
|const struct player_race *||r,|
|const struct player_class *||c,|
This fleshes out a full player based on the choices currently made, and so is called whenever things like race or class are chosen.
References player_class::c_exp, player_class::c_mhp, player::class, player::expfact, get_ahw(), get_history(), player_race::history, player::history, player::hitdie, player::lev, player::max_lev, player::mhp, player::player_hp, player_race::r_exp, player_race::r_mhp, and player::race.
References a_info, angband_constants::a_max, object_kind::aware, angband_constants::brand_max, object::brands, player::class, classes, artifact::created, monster_race::cur_num, angband_constants::curse_max, object::curses, monster_race::flags, player::food, i, player_upkeep::inven, k_info, angband_constants::k_max, l_list, monster_race::max_num, mem_free(), mem_zalloc(), player::obj_k, player::opts, angband_constants::pack_size, monster_lore::pkills, player_quests_reset(), PY_FOOD_FULL, player_upkeep::quiver, angband_constants::quiver_size, r_info, angband_constants::r_max, player::race, races, player::resting_turn, rf_has, RF_UNIQUE, artifact::seen, angband_constants::slay_max, object::slays, player::timed, TMD_MAX, player::total_energy, object_kind::tried, turn, player::upkeep, and z_info.
Try to wield everything wieldable in the inventory.
References player::body, player_body::count, player_upkeep::equip_cnt, player::gear, player::gear_k, new, object::next, NULL, object::number, equip_slot::obj, object_learn_on_wield(), object_split(), pile_insert(), pile_insert_end(), slot_object(), player_body::slots, player::upkeep, and wield_slot().
Referenced by player_outfit().