Skip to content

Commit

Permalink
Disabling traps (#475)
Browse files Browse the repository at this point in the history
Override the trap's behaviour to do nothing
  • Loading branch information
kedilayanaveen10 committed Jan 12, 2022
1 parent 5e27b67 commit 0ae4442
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion solutions/bonus/05_theCorridor.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@ map.defineObject("trapbreaker", {
});
var player = map.getPlayer()
map.placeObject(player.getX(),player.getY()-1,"trapbreaker");
```
```

## Disabling traps
Override the trap's behaviour to do nothing
```javascript
trap_behaviour = function(){}
```

0 comments on commit 0ae4442

Please sign in to comment.