Fixed some issues with refine UI (#6106)
Fixes #6103 Thanks to @Everade
This commit is contained in:
parent
3287388b05
commit
a7bbbb9379
@ -21950,10 +21950,11 @@ void clif_parse_refineui_refine( int fd, struct map_session_data* sd ){
|
||||
// Blacksmith blessings were used to prevent breaking and downgrading
|
||||
if( blacksmith_amount > 0 ){
|
||||
clif_refine( fd, 3, index, item->refine );
|
||||
clif_refineui_info( sd, index );
|
||||
// Delete the item if it is breakable
|
||||
}else if( cost->breaking_rate > 0 && ( rnd() % 10000 ) < cost->breaking_rate ){
|
||||
clif_refine( fd, 1, index, item->refine );
|
||||
pc_delitem( sd, index, 1, 0, 0, LOG_TYPE_CONSUME );
|
||||
pc_delitem( sd, index, 1, 0, 2, LOG_TYPE_CONSUME );
|
||||
// Downgrade the item if necessary
|
||||
}else if( cost->downgrade_amount > 0 ){
|
||||
item->refine = cap_value( item->refine - cost->downgrade_amount, 0, MAX_REFINE );
|
||||
@ -21962,6 +21963,7 @@ void clif_parse_refineui_refine( int fd, struct map_session_data* sd ){
|
||||
// Only show failure, but dont do anything
|
||||
}else{
|
||||
clif_refine( fd, 3, index, item->refine );
|
||||
clif_refineui_info( sd, index );
|
||||
}
|
||||
|
||||
clif_misceffect( &sd->bl, 2 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user