Debug.ts 917 B

12345678910111213141516171819202122232425262728293031
  1. module Debug {
  2. export function knowdewae () {
  3. let map = new MapNote({
  4. name : "De Wae",
  5. description : "This map shows de wae all de wae to Zimbabwe."
  6. });
  7. map.addRoom(...Region.RegionRoom.getAnyRightType(RoomRandom));
  8. WorldState.player.setCarried(map);
  9. }
  10. export function hurt (target : Person | Bodypart, amount : number) {
  11. let bp : Bodypart;
  12. if (target instanceof Person) {
  13. bp = target.getPart(HumanoidTorso);
  14. if (bp == undefined) return;
  15. } else if (target instanceof Bodypart) {
  16. bp = target;
  17. }
  18. bp.changeSoreness(amount);
  19. }
  20. export function goTo (str : string) {
  21. // let thing = Thing.getOneThing(str);
  22. // let room : Room;
  23. // if (thing != undefined) {
  24. // room = thing.getRoom();
  25. // } else {
  26. //
  27. // }
  28. }
  29. }