Merge pull request #264 from xen-42/tornado-default-fix

Fix default tornado type
This commit is contained in:
Nick 2022-08-13 00:27:38 -04:00 committed by GitHub
commit e99c0af965
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -271,9 +271,9 @@ namespace NewHorizons.External.Modules
[JsonConverter(typeof(StringEnumConverter))] [JsonConverter(typeof(StringEnumConverter))]
public enum TornadoType public enum TornadoType
{ {
[EnumMember(Value = @"downwards")] Downwards = 0, [EnumMember(Value = @"upwards")] Upwards = 0,
[EnumMember(Value = @"upwards")] Upwards = 1, [EnumMember(Value = @"downwards")] Downwards = 1,
[EnumMember(Value = @"hurricane")] Hurricane = 2 [EnumMember(Value = @"hurricane")] Hurricane = 2
} }
@ -303,7 +303,7 @@ namespace NewHorizons.External.Modules
/// <summary> /// <summary>
/// What type of cyclone should this be? Upwards and downwards are both tornados and will push in that direction. /// What type of cyclone should this be? Upwards and downwards are both tornados and will push in that direction.
/// </summary> /// </summary>
[DefaultValue("downwards")] public TornadoType type = TornadoType.Downwards; [DefaultValue("upwards")] public TornadoType type = TornadoType.Upwards;
/// <summary> /// <summary>
/// Angular distance from the starting position that it will wander, in terms of the angle around the x-axis. /// Angular distance from the starting position that it will wander, in terms of the angle around the x-axis.

View File

@ -1634,7 +1634,7 @@
}, },
"type": { "type": {
"description": "What type of cyclone should this be? Upwards and downwards are both tornados and will push in that direction.", "description": "What type of cyclone should this be? Upwards and downwards are both tornados and will push in that direction.",
"default": "downwards", "default": "upwards",
"$ref": "#/definitions/TornadoType" "$ref": "#/definitions/TornadoType"
}, },
"wanderDegreesX": { "wanderDegreesX": {
@ -1665,13 +1665,13 @@
"type": "string", "type": "string",
"description": "", "description": "",
"x-enumNames": [ "x-enumNames": [
"Downwards",
"Upwards", "Upwards",
"Downwards",
"Hurricane" "Hurricane"
], ],
"enum": [ "enum": [
"downwards",
"upwards", "upwards",
"downwards",
"hurricane" "hurricane"
] ]
}, },