mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
Compatibility tweaks for new Polaris sync
This commit is contained in:
@@ -387,7 +387,7 @@
|
||||
|
||||
occupantData["blind"] = (H.sdisabilities & BLIND)
|
||||
occupantData["nearsighted"] = (H.disabilities & NEARSIGHTED)
|
||||
occupantData = attempt_vr(src,"get_occupant_data_vr",list(occupantData,H)) //VOREStation Insert
|
||||
occupantData = attempt_vr(connected,"get_occupant_data_vr",list(occupantData,H)) //VOREStation Insert
|
||||
data["occupant"] = occupantData
|
||||
|
||||
ui = nanomanager.try_update_ui(user, src, ui_key, ui, data, force_open)
|
||||
|
||||
@@ -13,19 +13,9 @@
|
||||
else
|
||||
objectprey++
|
||||
|
||||
incoming["livingprey"] = livingprey
|
||||
incoming["humanprey"] = humanprey
|
||||
incoming["objectprey"] = objectprey
|
||||
incoming["livingPrey"] = livingprey
|
||||
incoming["humanPrey"] = humanprey
|
||||
incoming["objectPrey"] = objectprey
|
||||
incoming["weight"] = H.weight
|
||||
|
||||
return incoming
|
||||
|
||||
/obj/machinery/body_scanconsole/proc/format_occupant_data_vr(list/incoming)
|
||||
var/message = ""
|
||||
|
||||
message += text("Body Weight (to scale): [incoming["weight"]]lbs / [incoming["weight"] / 2.20463]kg<br><HR>")
|
||||
|
||||
if(incoming["livingprey"] || incoming["humanprey"] || incoming["objectprey"])
|
||||
message += text("<font color='red'>Foreign bodies detected:<br>[incoming["humanprey"] ? "- [incoming["humanprey"]] humanoid(s)<br>" : ""][incoming["livingprey"] ? "- [incoming["humanprey"]] non-humanoid(s)<br>" : ""][incoming["objectprey"] ? "- [incoming["humanprey"]] object(s)<br>" : ""]</font><hr>")
|
||||
|
||||
return message
|
||||
@@ -87,11 +87,11 @@
|
||||
var/list/borks = typesof(/obj/item/weapon/reagent_containers/food/snacks) - /obj/item/weapon/reagent_containers/food/snacks // BORK BORK BORK
|
||||
|
||||
playsound(get_turf(holder.my_atom), 'sound/effects/phasein.ogg', 100, 1)
|
||||
|
||||
/* Removed at some point, unsure what to replace with
|
||||
for(var/mob/living/carbon/human/M in viewers(get_turf(holder.my_atom), null))
|
||||
if(M:eyecheck() <= 0)
|
||||
flick("e_flash", M.flash)
|
||||
|
||||
*/
|
||||
for(var/i = 1, i <= 4 + rand(1,2), i++)
|
||||
var/chosen = pick(borks)
|
||||
var/obj/B = new chosen
|
||||
@@ -134,11 +134,11 @@
|
||||
var/list/material = typesof(/obj/item/stack/material) - blocked
|
||||
|
||||
playsound(get_turf(holder.my_atom), 'sound/effects/phasein.ogg', 100, 1)
|
||||
|
||||
/* Removed at some point, unsure what to replace with
|
||||
for(var/mob/living/carbon/human/M in viewers(get_turf(holder.my_atom), null))
|
||||
if(M:eyecheck() <= 0)
|
||||
flick("e_flash", M.flash)
|
||||
|
||||
*/
|
||||
var/spawn_amount = rand(1,50)
|
||||
var/chosen = pick(material)
|
||||
var/obj/item/stack/material/C = new chosen
|
||||
@@ -269,11 +269,11 @@
|
||||
var/list/voremobs = typesof(mob_path) - mob_path - blocked // list of possible hostile mobs
|
||||
|
||||
playsound(get_turf(holder.my_atom), 'sound/effects/phasein.ogg', 100, 1)
|
||||
|
||||
/* Removed at some point, unsure what to replace with
|
||||
for(var/mob/living/carbon/human/M in viewers(get_turf(holder.my_atom), null))
|
||||
if(M:eyecheck() <= 0)
|
||||
flick("e_flash", M.flash)
|
||||
|
||||
*/
|
||||
var/spawn_count = rand(1,3)
|
||||
for(var/i = 1, i <= spawn_count, i++)
|
||||
var/chosen = pick(voremobs)
|
||||
|
||||
@@ -67,6 +67,31 @@ Used In File(s): \code\game\machinery\adv_med.dm
|
||||
<td class='itemLabelNarrow'>Body Temperature:</td>
|
||||
<td class="itemContentMedium">{{:helper.round(data.occupant.bodyTempC*10)/10}}°C, {{:helper.round(data.occupant.bodyTempF*10)/10}}°F</td>
|
||||
</tr>
|
||||
<!-- VORESTATION SECTION -->
|
||||
<tr>
|
||||
<td class='itemLabelNarrow'>Body Weight:</td>
|
||||
<td class='itemContentMedium'>{{:helper.round(data.occupant.weight)}} lbs, {{:helper.round(
|
||||
data.occupant.weight/2.20463)}} kgs</td>
|
||||
{{if data.occupant.humanPrey}}
|
||||
<tr>
|
||||
<td class='itemLabel brute'>Foreign Humanoids:</td>
|
||||
<td class='itemContent brute'>{{:data.occupant.humanPrey}}</td>
|
||||
</tr>
|
||||
{{/if}}
|
||||
{{if data.occupant.livingPrey}}
|
||||
<tr>
|
||||
<td class='itemLabel brute'>Foreign Creatures:</td>
|
||||
<td class='itemContent brute'>{{:data.occupant.livingPrey}}</td>
|
||||
</tr>
|
||||
{{/if}}
|
||||
{{if data.occupant.objectPrey}}
|
||||
<tr>
|
||||
<td class='itemLabel brute'>Foreign Objects:</td>
|
||||
<td class='itemContent brute'>{{:data.occupant.objectPrey}}</td>
|
||||
</tr>
|
||||
{{/if}}
|
||||
<!-- VORESTATION END -->
|
||||
|
||||
</table>
|
||||
</div>
|
||||
{{if data.occupant.hasVirus}}
|
||||
|
||||
Reference in New Issue
Block a user