Merge pull request #13683 from Incoming5643/once_you_pop_the_fun_don't_stop

Adds early bursting for blob mode blobs
This commit is contained in:
tkdrg
2015-12-17 15:24:35 -03:00
3 changed files with 23 additions and 3 deletions
+4 -2
View File
@@ -104,7 +104,8 @@ var/list/blobs_legit = list() //used for win-score calculations, contains only b
/datum/game_mode/blob/proc/burst_blobs()
for(var/datum/mind/blob in infected_crew)
burst_blob(blob)
if(blob.special_role != "Blob Overmind")
burst_blob(blob)
/datum/game_mode/blob/proc/burst_blob(datum/mind/blob, warned=0)
var/client/blob_client = null
@@ -143,7 +144,8 @@ var/list/blobs_legit = list() //used for win-score calculations, contains only b
for(var/datum/mind/blob in infected_crew)
greet_blob(blob)
var/datum/action/innate/blob_burst/B = new
B.Grant(blob.current)
SSshuttle.emergencyNoEscape = 1
// Disable the blob event for this round.
+19 -1
View File
@@ -248,4 +248,22 @@
src << "<i>Factory Blobs</i> are blobs that spawn blob spores which will attack nearby enemies. This type of blob must be placed near node blobs or your core to work."
src << "<i>Node Blobs</i> are blobs which grow, like the core. Like the core it can activate resource and factory blobs."
src << "<b>In addition to the buttons on your HUD, there are a few click shortcuts to speed up expansion and defense.</b>"
src << "<b>Shortcuts:</b> Click = Expand Blob <b>|</b> Middle Mouse Click = Rally Spores <b>|</b> Ctrl Click = Create Shield Blob <b>|</b> Alt Click = Remove Blob"
src << "<b>Shortcuts:</b> Click = Expand Blob <b>|</b> Middle Mouse Click = Rally Spores <b>|</b> Ctrl Click = Create Shield Blob <b>|</b> Alt Click = Remove Blob"
/datum/action/innate/blob_burst
name = "Burst"
button_icon_state = "blob"
background_icon_state = "bg_alien"
/datum/action/innate/blob_burst/CheckRemoval()
if(ticker.mode.name != "blob" || !ishuman(owner))
return 1
var/datum/game_mode/blob/B = ticker.mode
if(!owner.mind || !(owner.mind in B.infected_crew))
return 1
return 0
/datum/action/innate/blob_burst/Activate()
var/datum/game_mode/blob/B = ticker.mode
B.burst_blob(owner.mind)
Remove(owner)