@@ -315,6 +315,10 @@ static const itype_id itype_rebreather_xl_on( "rebreather_xl_on" );
315
315
static const itype_id itype_shocktonfa_off ( " shocktonfa_off" );
316
316
static const itype_id itype_shocktonfa_on ( " shocktonfa_on" );
317
317
static const itype_id itype_smart_phone ( " smart_phone" );
318
+ static const itype_id itype_smart_watch ( " smart_watch" );
319
+ static const itype_id itype_smart_watch_adv ( " smart_watch_adv" );
320
+ static const itype_id itype_smart_watch_adv_music ( " smart_watch_adv_music" );
321
+ static const itype_id itype_smart_watch_music ( " smart_watch_music" );
318
322
static const itype_id itype_smartphone_music ( " smartphone_music" );
319
323
static const itype_id itype_soap ( " soap" );
320
324
static const itype_id itype_soldering_iron ( " soldering_iron" );
@@ -3842,7 +3846,9 @@ std::optional<int> iuse::mp3( Character *p, item *it, const tripoint_bub_ms & )
3842
3846
p->add_msg_if_player ( m_info, _ ( " The device's batteries are dead." ) );
3843
3847
} else if ( p->has_active_item ( itype_mp3_on ) || p->has_active_item ( itype_smartphone_music ) ||
3844
3848
p->has_active_item ( itype_afs_atomic_smartphone_music ) ||
3845
- p->has_active_item ( itype_afs_atomic_wraitheon_music ) ) {
3849
+ p->has_active_item ( itype_afs_atomic_wraitheon_music ) ||
3850
+ p->has_active_item ( itype_smart_watch_music ) ||
3851
+ p->has_active_item ( itype_smart_watch_adv_music ) ) {
3846
3852
p->add_msg_if_player ( m_info, _ ( " You are already listening to music!" ) );
3847
3853
} else {
3848
3854
p->add_msg_if_player ( m_info, _ ( " You put in the earbuds and start listening to music." ) );
@@ -3854,6 +3860,10 @@ std::optional<int> iuse::mp3( Character *p, item *it, const tripoint_bub_ms & )
3854
3860
it->convert ( itype_afs_atomic_smartphone_music, p ).active = true ;
3855
3861
} else if ( it->typeId () == itype_afs_wraitheon_smartphone ) {
3856
3862
it->convert ( itype_afs_atomic_wraitheon_music, p ).active = true ;
3863
+ } else if ( it->typeId () == itype_smart_watch ) {
3864
+ it->convert ( itype_smart_watch_music, p ).active = true ;
3865
+ } else if ( it->typeId () == itype_smart_watch_adv ) {
3866
+ it->convert ( itype_smart_watch_adv_music, p ).active = true ;
3857
3867
}
3858
3868
p->mod_moves ( -200 );
3859
3869
}
@@ -3962,6 +3972,12 @@ std::optional<int> iuse::mp3_deactivate( Character *p, item *it, const tripoint_
3962
3972
} else if ( it->typeId () == itype_afs_atomic_wraitheon_music ) {
3963
3973
p->add_msg_if_player ( _ ( " The phone turns off." ) );
3964
3974
it->convert ( itype_afs_wraitheon_smartphone, p ).active = false ;
3975
+ } else if ( it->typeId () == itype_smart_watch_music ) {
3976
+ p->add_msg_if_player ( _ ( " The phone turns off." ) );
3977
+ it->convert ( itype_smart_watch, p ).active = false ;
3978
+ } else if ( it->typeId () == itype_smart_watch_adv_music ) {
3979
+ p->add_msg_if_player ( _ ( " The phone turns off." ) );
3980
+ it->convert ( itype_smart_watch_adv, p ).active = false ;
3965
3981
}
3966
3982
p->mod_moves ( -200 );
3967
3983
music::deactivate_music_id ( music::music_id::mp3 );
0 commit comments