.
This commit is contained in:
parent
02c579b233
commit
ae59567b64
3 changed files with 9 additions and 1 deletions
3
event.gd
3
event.gd
|
|
@ -21,6 +21,9 @@ func requirements_satisfied() -> bool:
|
||||||
for requirement in requirements:
|
for requirement in requirements:
|
||||||
if Economy.get_currency_amount(requirement.currency) < requirement.amount:
|
if Economy.get_currency_amount(requirement.currency) < requirement.amount:
|
||||||
return false
|
return false
|
||||||
|
for requirement in min_requirements:
|
||||||
|
if Economy.get_currency_amount(requirement.currency) > requirement.amount:
|
||||||
|
return false
|
||||||
return true
|
return true
|
||||||
|
|
||||||
func will_happen() -> bool:
|
func will_happen() -> bool:
|
||||||
|
|
|
||||||
|
|
@ -17,3 +17,7 @@ func on_remove_letter(l: Letter):
|
||||||
push_error("Removed Letter not found", l)
|
push_error("Removed Letter not found", l)
|
||||||
return
|
return
|
||||||
letters.remove_at(i)
|
letters.remove_at(i)
|
||||||
|
|
||||||
|
func kill_event_archie():
|
||||||
|
var event := preload("res://random events/taunt.tres")
|
||||||
|
event.probability = 0.0
|
||||||
|
|
|
||||||
|
|
@ -28,12 +28,13 @@ else:
|
||||||
if {special.archie_increment} == 4.0:
|
if {special.archie_increment} == 4.0:
|
||||||
"P.S.\
|
"P.S.\
|
||||||
I was lying about the whole feeding you to dinosaur's part."
|
I was lying about the whole feeding you to dinosaur's part."
|
||||||
elif {special.archie_increment} == 7.0
|
elif {special.archie_increment} == 7.0:
|
||||||
"P.S.\
|
"P.S.\
|
||||||
This is the last time you'll hear from me, frankly it's late and I'm getting tired of writing these letters."
|
This is the last time you'll hear from me, frankly it's late and I'm getting tired of writing these letters."
|
||||||
"Goodnight, sleep loose, let the bed bugs eat you alive or something.\
|
"Goodnight, sleep loose, let the bed bugs eat you alive or something.\
|
||||||
\
|
\
|
||||||
- Archie"
|
- Archie"
|
||||||
|
do GameState.kill_event_archie()
|
||||||
set {special.archie_increment} += 1.0
|
set {special.archie_increment} += 1.0
|
||||||
|
|
||||||
# If special.archie_increment >= 7 then set the probability of the taunt event to zero
|
# If special.archie_increment >= 7 then set the probability of the taunt event to zero
|
||||||
Loading…
Add table
Reference in a new issue