+
+
diff --git a/vasl_templates/webapp/static/main.js b/vasl_templates/webapp/static/main.js
index 6dda418..f454bd4 100644
--- a/vasl_templates/webapp/static/main.js
+++ b/vasl_templates/webapp/static/main.js
@@ -15,6 +15,7 @@ var NATIONALITY_SPECIFIC_BUTTONS = {
"german": [ "pf", "psk", "atmm" ],
"american": [ "baz" ],
"british": [ "piat" ],
+ "japanese": [ "thh" ],
} ;
GENERATE_SNIPPET_HINT = "Generate an HTML snippet (shift-click to get an image)." ;
diff --git a/vasl_templates/webapp/static/snippets.js b/vasl_templates/webapp/static/snippets.js
index 7d26e4f..0bfdf9b 100644
--- a/vasl_templates/webapp/static/snippets.js
+++ b/vasl_templates/webapp/static/snippets.js
@@ -359,6 +359,8 @@ function make_snippet( $btn, params, extra_params, show_date_warnings )
showWarningMsg( "BAZ are only available from November 1942." ) ;
if ( template_id === "atmm" && ! is_atmm_available() )
showWarningMsg( "ATMM are only available from 1944." ) ;
+ if ( template_id == "thh" && ! params.SCENARIO_YEAR )
+ showWarningMsg( "Can't determine the THH ATMM check dr without the scenario year." ) ;
}
// add in any extra parameters
diff --git a/vasl_templates/webapp/static/vassal.js b/vasl_templates/webapp/static/vassal.js
index 2c09dc1..1a967f7 100644
--- a/vasl_templates/webapp/static/vassal.js
+++ b/vasl_templates/webapp/static/vassal.js
@@ -164,9 +164,10 @@ function _generate_snippets()
for ( var nat in NATIONALITY_SPECIFIC_BUTTONS ) {
for ( var i=0 ; i < NATIONALITY_SPECIFIC_BUTTONS[nat].length ; ++i ) {
var template_id = NATIONALITY_SPECIFIC_BUTTONS[nat][i] ;
- if ( ["pf","atmm"].indexOf( template_id ) !== -1 ) {
- // NOTE: PF and ATMM are always available as an inherent part of a squad's capabilities (subject to date restrictions),
- // so we always auto-create these labels, unlike, say MOL or BAZ, which are only present by SSR or OB counter).
+ if ( ["pf","atmm","thh"].indexOf( template_id ) !== -1 ) {
+ // NOTE: PF, ATMM, THH are always available as an inherent part of a squad's capabilities
+ // (subject to date restrictions), so we always auto-create these labels, unlike, say MOL or BAZ,
+ // which are only present by SSR or OB counter).
continue ;
}
no_autocreate[template_id] = true ;
@@ -291,6 +292,8 @@ function _get_raw_content( snippet_id, $btn, params )
return [ "PIAT", "Range", "TH#", "B#", "TK#" ] ;
if ( snippet_id === "baz" )
return [ "Bazooka", "Range", "TH#" ] ;
+ if ( snippet_id === "thh" )
+ return [ "Tank-Hunter Heroes", "Banzai Charge" ] ;
// handle vehicle/ordnance notes
// NOTE: These were implemented after we added snippet ID's, so there's no need to support legacy labels.
diff --git a/vasl_templates/webapp/templates/tabs-ob1.html b/vasl_templates/webapp/templates/tabs-ob1.html
index 3b9093f..ba9f0f8 100644
--- a/vasl_templates/webapp/templates/tabs-ob1.html
+++ b/vasl_templates/webapp/templates/tabs-ob1.html
@@ -35,6 +35,7 @@
+