Add ghost role raffles (#26629)
* Add ghost role raffles * GRR: Fix dialogue sizing, fix merge * GRR: Add raffle deciders (winner picker) * GRR: Make settings prototype based with option to override * GRR: Use Raffles folder and namespace * GRR: DataFieldify and TimeSpanify * GRR: Don't actually DataFieldify HashSet<ICommonSession>s * GRR: add GetGhostRoleCount() + docs * update engine on branch * Ghost role raffles: docs, fix window size, cleanup, etc * GRR: Admin UI * GRR: Admin UI: Display initial/max/ext of selected raffle settings proto * GRR: Make a ton of roles raffled
This commit is contained in:
3
Resources/Prototypes/GhostRoleRaffles/deciders.yml
Normal file
3
Resources/Prototypes/GhostRoleRaffles/deciders.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
- type: ghostRoleRaffleDecider
|
||||
id: default
|
||||
decider: !type:RngGhostRoleRaffleDecider {}
|
||||
15
Resources/Prototypes/GhostRoleRaffles/settings.yml
Normal file
15
Resources/Prototypes/GhostRoleRaffles/settings.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
# for important antag roles (nukie reinforcements, ninja, etc.)
|
||||
- type: ghostRoleRaffleSettings
|
||||
id: default
|
||||
settings:
|
||||
initialDuration: 30
|
||||
joinExtendsDurationBy: 10
|
||||
maxDuration: 90
|
||||
|
||||
# for roles that don't matter too much or are available plentifully (e.g. space carp)
|
||||
- type: ghostRoleRaffleSettings
|
||||
id: short
|
||||
settings:
|
||||
initialDuration: 10
|
||||
joinExtendsDurationBy: 5
|
||||
maxDuration: 30
|
||||
Reference in New Issue
Block a user