mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
new traitor objective to steal money
Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>
This commit is contained in:
@@ -1189,6 +1189,30 @@ datum
|
|||||||
get_weight(var/job)
|
get_weight(var/job)
|
||||||
return 20
|
return 20
|
||||||
|
|
||||||
|
cash //must be in credits - atm and coins don't count
|
||||||
|
var/steal_amount = 2000
|
||||||
|
explanation_text = "Beg, borrow or steal 2000 credits."
|
||||||
|
weight = 20
|
||||||
|
|
||||||
|
New(var/text,var/joba)
|
||||||
|
..(text,joba)
|
||||||
|
steal_amount = 1250 + rand(0,3750)
|
||||||
|
explanation_text = "Beg, borrow or steal [steal_amount] credits."
|
||||||
|
|
||||||
|
get_points(var/job)
|
||||||
|
return 10 + 25 * round(steal_amount / 5000)
|
||||||
|
|
||||||
|
check_completion()
|
||||||
|
var/held_credits = 0
|
||||||
|
for(var/obj/item/weapon/money/M in owner.current.get_contents())
|
||||||
|
held_credits += M.worth
|
||||||
|
if(held_credits > steal_amount)
|
||||||
|
return 1
|
||||||
|
return 0
|
||||||
|
|
||||||
|
get_weight(var/job)
|
||||||
|
return 20
|
||||||
|
|
||||||
|
|
||||||
nuclear
|
nuclear
|
||||||
explanation_text = "Destroy the station with a nuclear device."
|
explanation_text = "Destroy the station with a nuclear device."
|
||||||
|
|||||||
Reference in New Issue
Block a user