Files
Bubberstation/code/modules/tgui/states/fun.dm
SkyratBot 5a33abb773 [MIRROR] Event menu rewrite [MDB IGNORE] (#15396)
* Event menu rewrite

* Update topic.dm

* Update _event.dm

* Update event_chaos_system.dm

Co-authored-by: Profakos <profakos@gmail.com>
Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
2022-08-08 01:15:12 +01:00

18 lines
370 B
Plaintext

/*!
* Copyright (c) 2020 Aleksej Komarov
* SPDX-License-Identifier: MIT
*/
/**
* tgui state: fun_state
*
* Checks that the user has the fun privilige.
*/
GLOBAL_DATUM_INIT(fun_state, /datum/ui_state/fun_state, new)
/datum/ui_state/fun_state/can_use_topic(src_object, mob/user)
if(check_rights_for(user.client, R_FUN))
return UI_INTERACTIVE
return UI_CLOSE