compile fixes

Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>
This commit is contained in:
Cael_Aislinn
2012-08-03 19:56:45 +10:00
parent 7fce61598a
commit d20a7a50f1

View File

@@ -107,15 +107,14 @@
// the lowest to multiply it by the proper success ratio.
var/weight = max(ordered_success)
ordered_success -= weight
switch(weight)
if(steal_success)
steal_weight *= steal_success*success_weights[i]
if(frame_success)
frame_weight *= frame_success*success_weights[i]
if(protect_success)
protect_weight *= protect_success*success_weights[i]
if(kill_success)
kill_weight *= kill_success*success_weights[i]
if(weight == steal_success)
steal_weight *= steal_success*success_weights[i]
else if(weight == frame_success)
frame_weight *= frame_success*success_weights[i]
else if(weight == protect_success)
protect_weight *= protect_success*success_weights[i]
else if(weight == kill_success)
kill_weight *= kill_success*success_weights[i]
var/total_weights = kill_weight + protect_weight + frame_weight + steal_weight
frame_weight = round(frame_weight/total_weights)
@@ -311,7 +310,7 @@ datum
target = targeta
job = joba
weight = get_points(job)
explanation_text = "[target.current.real_name], the [target.assigned_role] is a [pick("relative of a","friend of a","") + pick("high ranking","important","well-liked")] Syndicate [pick("Leader","Officer","Agent","sympathiser"]. Make sure they get off the station safely, while minimizing intervention."
explanation_text = "[target.current.real_name], the [target.assigned_role] is a [pick("relative of a","friend of a","") + pick("high ranking","important","well-liked")] Syndicate [pick("Leader","Officer","Agent","sympathiser")]. Make sure they get off the station safely, while minimizing intervention."
check_completion()
if(emergency_shuttle.location<2)
@@ -355,7 +354,7 @@ datum
target = targeta
job = joba
weight = get_points(job)
explanation_text = "Assassinate [target.current.real_name], the [target.role_alt_title ? target.role_alt_title : (!role_type ? target.assigned_role : target.special_role)]."
explanation_text = "Assassinate [target.current.real_name], the [target.role_alt_title ? target.role_alt_title : target.assigned_role]."
check_completion()
if(target && target.current)
@@ -394,7 +393,7 @@ datum
break
if(target && target.current)
explanation_text = "Assassinate [target.current.real_name], the [target.role_alt_title ? target.role_alt_title : (!role_type ? target.assigned_role : target.special_role)]."
explanation_text = "Assassinate [target.current.real_name], the [target.role_alt_title ? target.role_alt_title : target.assigned_role]."
else
explanation_text = "Free Objective"
@@ -412,7 +411,7 @@ datum
target = pick(possible_targets)
if(target && target.current)
explanation_text = "Assassinate [target.current.real_name], the [target.role_alt_title ? target.role_alt_title : (!role_type ? target.assigned_role : target.special_role)]."
explanation_text = "Assassinate [target.current.real_name], the [target.role_alt_title ? target.role_alt_title : target.assigned_role]."
else
explanation_text = "Free Objective"