mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-29 11:32:13 +00:00
- Fixed the updated permission panel to work with the database system.
- Added lights and power to oldstation for whatever reason. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5245 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -143,27 +143,31 @@
|
|||||||
else
|
else
|
||||||
new_rank = input("Please select a rank", "New rank", null, null) as null|anything in list("Game Master","Game Admin", "Trial Admin", "Admin Observer","*New Rank*")
|
new_rank = input("Please select a rank", "New rank", null, null) as null|anything in list("Game Master","Game Admin", "Trial Admin", "Admin Observer","*New Rank*")
|
||||||
|
|
||||||
var/rights = 0
|
var/rights = D.rights
|
||||||
switch(new_rank)
|
switch(new_rank)
|
||||||
if(null,"") return
|
if(null,"") return
|
||||||
if("*New Rank*")
|
if("*New Rank*")
|
||||||
new_rank = ckeyEx(input("Please input a new rank", "New custom rank", null, null) as null|text)
|
new_rank = input("Please input a new rank", "New custom rank", null, null) as null|text
|
||||||
|
if(config.admin_legacy_system)
|
||||||
|
new_rank = ckeyEx(new_rank)
|
||||||
if(!new_rank)
|
if(!new_rank)
|
||||||
usr << "<font color='red'>Error: Topic 'editrights': Invalid rank</font>"
|
usr << "<font color='red'>Error: Topic 'editrights': Invalid rank</font>"
|
||||||
return
|
return
|
||||||
if(admin_ranks.len)
|
if(config.admin_legacy_system)
|
||||||
if(new_rank in admin_ranks)
|
if(admin_ranks.len)
|
||||||
rights |= admin_ranks[new_rank] //we typed a rank which already exists, use its rights
|
if(new_rank in admin_ranks)
|
||||||
else
|
rights = admin_ranks[new_rank] //we typed a rank which already exists, use its rights
|
||||||
admin_ranks[new_rank] = 0 //add the new rank to admin_ranks
|
else
|
||||||
|
admin_ranks[new_rank] = 0 //add the new rank to admin_ranks
|
||||||
else
|
else
|
||||||
new_rank = ckeyEx(new_rank)
|
if(config.admin_legacy_system)
|
||||||
rights |= admin_ranks[new_rank] //we input an existing rank, use its rights
|
new_rank = ckeyEx(new_rank)
|
||||||
|
rights = admin_ranks[new_rank] //we input an existing rank, use its rights
|
||||||
|
|
||||||
if(D)
|
if(D)
|
||||||
D.disassociate() //remove adminverbs and unlink from client
|
D.disassociate() //remove adminverbs and unlink from client
|
||||||
D.rank = new_rank //update the rank
|
D.rank = new_rank //update the rank
|
||||||
D.rights = rights //update the rights based on admin_ranks (default: 0)
|
D.rights = rights //update the rights based on admin_ranks (default: 0)
|
||||||
else
|
else
|
||||||
D = new /datum/admins(new_rank, rights, adm_ckey)
|
D = new /datum/admins(new_rank, rights, adm_ckey)
|
||||||
|
|
||||||
|
|||||||
2112
maps/oldstation.dmm
2112
maps/oldstation.dmm
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user