mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 19:44:58 +01:00
Grep for space indentation (#54850)
#54604 atomizing Since a lot of the space indents are in lists ill atomize those later
This commit is contained in:
@@ -41,8 +41,8 @@
|
||||
return
|
||||
|
||||
/**
|
||||
* This proc generates the panel that opens to all newly joining players, allowing them to join, observe, view polls, view the current crew manifest, and open the character customization menu.
|
||||
*/
|
||||
* This proc generates the panel that opens to all newly joining players, allowing them to join, observe, view polls, view the current crew manifest, and open the character customization menu.
|
||||
*/
|
||||
/mob/dead/new_player/proc/new_player_panel()
|
||||
if (client?.interviewee)
|
||||
return
|
||||
@@ -529,11 +529,11 @@
|
||||
return TRUE
|
||||
|
||||
/**
|
||||
* Prepares a client for the interview system, and provides them with a new interview
|
||||
*
|
||||
* This proc will both prepare the user by removing all verbs from them, as well as
|
||||
* giving them the interview form and forcing it to appear.
|
||||
*/
|
||||
* Prepares a client for the interview system, and provides them with a new interview
|
||||
*
|
||||
* This proc will both prepare the user by removing all verbs from them, as well as
|
||||
* giving them the interview form and forcing it to appear.
|
||||
*/
|
||||
/mob/dead/new_player/proc/register_for_interview()
|
||||
// First we detain them by removing all the verbs they have on client
|
||||
for (var/v in client.verbs)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Shows a list of currently running polls a player can vote/has voted on
|
||||
*
|
||||
*/
|
||||
* Shows a list of currently running polls a player can vote/has voted on
|
||||
*
|
||||
*/
|
||||
/mob/dead/new_player/proc/handle_player_polling()
|
||||
var/list/output = list("<div align='center'><B>Player polls</B><hr><table>")
|
||||
var/rs = REF(src)
|
||||
@@ -14,9 +14,9 @@
|
||||
src << browse(jointext(output, ""),"window=playerpolllist;size=500x300")
|
||||
|
||||
/**
|
||||
* Redirects a player to the correct poll window based on poll type.
|
||||
*
|
||||
*/
|
||||
* Redirects a player to the correct poll window based on poll type.
|
||||
*
|
||||
*/
|
||||
/mob/dead/new_player/proc/poll_player(datum/poll_question/poll)
|
||||
if(!poll)
|
||||
return
|
||||
@@ -36,11 +36,11 @@
|
||||
poll_player_irv(poll)
|
||||
|
||||
/**
|
||||
* Shows voting window for an option type poll, listing its options and relevant details.
|
||||
*
|
||||
* If already voted on, the option a player voted for is pre-selected.
|
||||
*
|
||||
*/
|
||||
* Shows voting window for an option type poll, listing its options and relevant details.
|
||||
*
|
||||
* If already voted on, the option a player voted for is pre-selected.
|
||||
*
|
||||
*/
|
||||
/mob/dead/new_player/proc/poll_player_option(datum/poll_question/poll)
|
||||
var/datum/db_query/query_option_get_voted = SSdbcore.NewQuery({"
|
||||
SELECT optionid FROM [format_table_name("poll_vote")]
|
||||
@@ -80,11 +80,11 @@
|
||||
src << browse(jointext(output, ""),"window=playerpoll;size=500x250")
|
||||
|
||||
/**
|
||||
* Shows voting window for a text response type poll, listing its relevant details.
|
||||
*
|
||||
* If already responded to, the saved response of a player is shown.
|
||||
*
|
||||
*/
|
||||
* Shows voting window for a text response type poll, listing its relevant details.
|
||||
*
|
||||
* If already responded to, the saved response of a player is shown.
|
||||
*
|
||||
*/
|
||||
/mob/dead/new_player/proc/poll_player_text(datum/poll_question/poll)
|
||||
var/datum/db_query/query_text_get_replytext = SSdbcore.NewQuery({"
|
||||
SELECT replytext FROM [format_table_name("poll_textreply")]
|
||||
@@ -117,11 +117,11 @@
|
||||
src << browse(jointext(output, ""),"window=playerpoll;size=500x500")
|
||||
|
||||
/**
|
||||
* Shows voting window for a rating type poll, listing its options and relevant details.
|
||||
*
|
||||
* If already voted on, the options a player voted for are pre-selected.
|
||||
*
|
||||
*/
|
||||
* Shows voting window for a rating type poll, listing its options and relevant details.
|
||||
*
|
||||
* If already voted on, the options a player voted for are pre-selected.
|
||||
*
|
||||
*/
|
||||
/mob/dead/new_player/proc/poll_player_rating(datum/poll_question/poll)
|
||||
var/datum/db_query/query_rating_get_votes = SSdbcore.NewQuery({"
|
||||
SELECT optionid, rating FROM [format_table_name("poll_vote")]
|
||||
@@ -172,11 +172,11 @@
|
||||
src << browse(jointext(output, ""),"window=playerpoll;size=500x500")
|
||||
|
||||
/**
|
||||
* Shows voting window for a multiple choice type poll, listing its options and relevant details.
|
||||
*
|
||||
* If already voted on, the options a player voted for are pre-selected.
|
||||
*
|
||||
*/
|
||||
* Shows voting window for a multiple choice type poll, listing its options and relevant details.
|
||||
*
|
||||
* If already voted on, the options a player voted for are pre-selected.
|
||||
*
|
||||
*/
|
||||
/mob/dead/new_player/proc/poll_player_multi(datum/poll_question/poll)
|
||||
var/datum/db_query/query_multi_get_votes = SSdbcore.NewQuery({"
|
||||
SELECT optionid FROM [format_table_name("poll_vote")]
|
||||
@@ -216,11 +216,11 @@
|
||||
src << browse(jointext(output, ""),"window=playerpoll;size=500x300")
|
||||
|
||||
/**
|
||||
* Shows voting window for an IRV type poll, listing its options and relevant details.
|
||||
*
|
||||
* If already voted on, the options are sorted how a player voted for them, otherwise they are randomly shuffled.
|
||||
*
|
||||
*/
|
||||
* Shows voting window for an IRV type poll, listing its options and relevant details.
|
||||
*
|
||||
* If already voted on, the options are sorted how a player voted for them, otherwise they are randomly shuffled.
|
||||
*
|
||||
*/
|
||||
/mob/dead/new_player/proc/poll_player_irv(datum/poll_question/poll)
|
||||
var/datum/asset/irv_assets = get_asset_datum(/datum/asset/group/irv)
|
||||
irv_assets.send(src)
|
||||
@@ -304,13 +304,13 @@
|
||||
src << browse(jointext(output, ""),"window=playerpoll;size=500x500")
|
||||
|
||||
/**
|
||||
* Runs some poll validation before a vote is processed.
|
||||
*
|
||||
* Checks a player is who they claim to be and that a poll is actually still running.
|
||||
* Also loads the vote_id to pass onto single-option and text polls.
|
||||
* Increments the vote count when successful.
|
||||
*
|
||||
*/
|
||||
* Runs some poll validation before a vote is processed.
|
||||
*
|
||||
* Checks a player is who they claim to be and that a poll is actually still running.
|
||||
* Also loads the vote_id to pass onto single-option and text polls.
|
||||
* Increments the vote count when successful.
|
||||
*
|
||||
*/
|
||||
/mob/dead/new_player/proc/vote_on_poll_handler(datum/poll_question/poll, href_list)
|
||||
if(!SSdbcore.Connect())
|
||||
to_chat(src, "<span class='danger'>Failed to establish database connection.</span>")
|
||||
@@ -375,9 +375,9 @@
|
||||
to_chat(usr, "<span class='notice'>Vote successful.</span>")
|
||||
|
||||
/**
|
||||
* Processes vote form data and saves results to the database for an option type poll.
|
||||
*
|
||||
*/
|
||||
* Processes vote form data and saves results to the database for an option type poll.
|
||||
*
|
||||
*/
|
||||
/mob/dead/new_player/proc/vote_on_poll_option(datum/poll_question/poll, href_list, admin_rank, sql_poll_id, vote_id)
|
||||
if(!SSdbcore.Connect())
|
||||
to_chat(src, "<span class='danger'>Failed to establish database connection.</span>")
|
||||
@@ -407,9 +407,9 @@
|
||||
return TRUE
|
||||
|
||||
/**
|
||||
* Processes response form data and saves results to the database for a text response type poll.
|
||||
*
|
||||
*/
|
||||
* Processes response form data and saves results to the database for a text response type poll.
|
||||
*
|
||||
*/
|
||||
/mob/dead/new_player/proc/vote_on_poll_text(href_list, admin_rank, sql_poll_id, vote_id)
|
||||
if(!SSdbcore.Connect())
|
||||
to_chat(src, "<span class='danger'>Failed to establish database connection.</span>")
|
||||
@@ -439,9 +439,9 @@
|
||||
return TRUE
|
||||
|
||||
/**
|
||||
* Processes vote form data and saves results to the database for a rating type poll.
|
||||
*
|
||||
*/
|
||||
* Processes vote form data and saves results to the database for a rating type poll.
|
||||
*
|
||||
*/
|
||||
/mob/dead/new_player/proc/vote_on_poll_rating(datum/poll_question/poll, list/href_list, admin_rank, sql_poll_id)
|
||||
if(!SSdbcore.Connect())
|
||||
to_chat(src, "<span class='danger'>Failed to establish database connection.</span>")
|
||||
@@ -482,9 +482,9 @@
|
||||
return TRUE
|
||||
|
||||
/**
|
||||
* Processes vote form data and saves results to the database for a multiple choice type poll.
|
||||
*
|
||||
*/
|
||||
* Processes vote form data and saves results to the database for a multiple choice type poll.
|
||||
*
|
||||
*/
|
||||
/mob/dead/new_player/proc/vote_on_poll_multi(datum/poll_question/poll, list/href_list, admin_rank, sql_poll_id)
|
||||
if(!SSdbcore.Connect())
|
||||
to_chat(src, "<span class='danger'>Failed to establish database connection.</span>")
|
||||
@@ -529,9 +529,9 @@
|
||||
return TRUE
|
||||
|
||||
/**
|
||||
* Processes vote form data and saves results to the database for an IRV type poll.
|
||||
*
|
||||
*/
|
||||
* Processes vote form data and saves results to the database for an IRV type poll.
|
||||
*
|
||||
*/
|
||||
/mob/dead/new_player/proc/vote_on_poll_irv(datum/poll_question/poll, list/href_list, admin_rank, sql_poll_id)
|
||||
if(!SSdbcore.Connect())
|
||||
to_chat(src, "<span class='danger'>Failed to establish database connection.</span>")
|
||||
|
||||
Reference in New Issue
Block a user