Added @addfame (#6588)

* Added `@addfame`
* Added alias `famepoint`, `famepoints`
* Changed `sd` in `pc_addfame` to reference

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
Co-authored-by: Aleos <aleos89@users.noreply.github.com>
This commit is contained in:
Cydh Ramdh
2022-02-16 01:00:59 +07:00
committed by GitHub
parent a8e516730a
commit c454443a0b
12 changed files with 72 additions and 40 deletions

View File

@@ -3078,7 +3078,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
{ //TK_MISSION [Skotlex]
if (++(sd->mission_count) >= 100 && (temp = mob_get_random_id(MOBG_BRANCH_OF_DEAD_TREE, static_cast<e_random_monster_flags>(RMF_CHECK_MOB_LV|RMF_MOB_NOT_BOSS|RMF_MOB_NOT_SPAWN), sd->status.base_level)))
{
pc_addfame(sd, battle_config.fame_taekwon_mission);
pc_addfame(*sd, battle_config.fame_taekwon_mission);
sd->mission_mobid = temp;
pc_setglobalreg(sd, add_str(TKMISSIONID_VAR), temp);
sd->mission_count = 0;