Closed taltamir closed 4 years ago
Trying to use one when you already used one that day does not throw an error. it just fails to produce clovers. I think the use succeeds but does not consume the rocket, instead giving a message that you can only use one a day.
To prevent unnecessary server hits, maybe have it be used immediately after buying?
Mafia now tracks fireworks usage via
_fireworkUsed
So this is a quick fix of
if (holiday() == "Dependence Day" && !(get_property(_fireworkUsed).to_boolean()))
{
// buy and use
}
So this is a quick fix of
if (holiday() == "Dependence Day" && !(get_property(_fireworkUsed).to_boolean())) { // buy and use }
Pretty much, yes. just will be a while until we can actually test it.
Today is dependence day. perfect time to test the above mentioned function But I am not managing to get holiday() to work CLI command holiday does nothing print (holiday()); does nothing and print (holiday() == "Dependence Day") gives me false
edit: so, this issue is probably caused by being dependence day based on real calendar rather than kol calendar. which mafia does not recognize
Dependence day is a holiday that occurs on the 4th of bors. During it you can buy green rockets from the general store at 600 meat each. You are allowed to use one of them to get 3 disassembled clovers.
I can confirm this works on hardcore ed and on hardcore sneaky pete.
Concerns I had (all solved / were not actually a problem):