Wednesday, 19 December 2012

Restaurant Order

EDIT unfortunately It appears there's a problem with adding custom orders - neither the points nor the money are affected - so best ignore the following for the time being - hopefully when Cmac returns things will be sorted.
This adds a Work in Restaurant order to the Slave order screen - add to Acts.xml

<SlaveCustomOrderRestaurant name="Restaurant" label="#person will work in a restaurant as a chef." show='true' >
<if  Cooking_current="70+">
<SetVar var1="1.5 multiply Cooking_current + Intelligence_current"/>
<if var1="360-">
<Money>var1</Money>
<Else>if</Else>
<Money>360</Money>
</if>
<Points slave="#person"><Refinement>1</Refinement><Cooking>8</Cooking><Cleaning>1</Cleaning><Tiredness>4</Tiredness><Reputation>1</Reputation></Points>
</if>
</SlaveCustomOrderRestaurant>

It assumes the slave can act as a chef (has cooking of at least 70).If not then the order will have no effect (slave is sent home until she gets better). If there's interest I can add a waitress option.

No comments:

Post a Comment