Skip to content

Commit

Permalink
PoC of wasteland traps
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsndk committed Jun 15, 2024
1 parent a4c4429 commit cca1513
Show file tree
Hide file tree
Showing 5 changed files with 5,670 additions and 29,983 deletions.
8 changes: 8 additions & 0 deletions design/conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,14 @@
"debuff":True,
"defense":"firesistance",
},
"wasteland":{
"name":"Wasteland Toxicity",
"skin":"placeholder", # TODO: find a better skin for the debuff
"interval":210, # how often should it tick / trigger
"ui":True,
"debuff":True,
# "defense":"firesistance",
},
"shocked":{
"name":"Shocked",
"skin":"essenceofthunder",
Expand Down
36 changes: 36 additions & 0 deletions design/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1667,6 +1667,42 @@
"drop_norm":1000,
"outside":True,
"lux":0.4,
"traps":[
{
"type":"wasteland",
"damage": 10,
"damage_increment": 1,
"damage_max": 20, # TODO: If max is not defined, perhaps a formula could be used to decide max?
"intensity": 1, # A Zone multiplier
"duration": 12000, # define duration, a higher tier zone could last longer before running out
"polygon":[
[-88, -32],
[152, -32],
[152, 80],
[72, 80],
[72, 160],
[-88, 160]
]
},
{
"type":"wasteland",
"damage": 10,
"damage_increment": 2,
"damage_max": 50,
"intensity": 2, # A Zone multiplier
"duration": 120000, # higher tier zone with longer duration
"polygon":[
[-88, 168],
[72, 168],
[72, 376],
[-88, 376]
]
},
],
# define where we spawn if we die on the map
"on_death":["wasteland",0],
# can't remember what on exit is
# "on_exit":["main",0],
},
}
for name in maps:
Expand Down
Loading

0 comments on commit cca1513

Please sign in to comment.