/* 
 * Script decompiled by jagdecs2 v3.2
 * Decompiler opts:
 * --------------
 * t1LocalAnalyzer:true
 * t2LocalAnalyzer:true
 * beautifier:true
 * --------------
 * Made by mgi125 ;)
 */


void script_4880(int a0) {
	int v9;
	object v6 = "";
	int v12 = 0;
	int v10 = 0;
	int v3 = 3;
	int v1 = 0;
	int v5 = 2236962;
	int v7 = -1;
	int v0 = 0;
	int v11 = script_4964(a0);
	int v4 = 0;
	int v8 = 0;
	switch (a0) {
		case 82444825:
		case 82444828:
		case 82444831:
		case 82444816:
		case 82444819:
		case 82444822:
		case 82444843:
		case 82444840:
		case 82444810:
		case 82444813:
		case 82444846:
		case 82444791:
		case 82444834:
		case 82444800:
		case 82444803:
		case 82444794:
		case 82444797:
		case 82444837:
		case 82444806:
			v8 = 1;
	}
	if (cs2method_10172() == 1) {
		cs2method_10273(a0);
		script_4407(a0, 1, 178);
		int v13 = script_4971(v11);
		int v14 = script_5171(v13);
		cs2method_10606(a0, 5, 0);
		cs2method_10013(18, 18, 0, 0);
		cs2method_10063(0, 0, 1, 1);
		if (v8 == 1) {
			cs2method_10002(255);
		}
		switch (v11) {
			case 35:
			case 38:
			case 39:
			case 36:
			case 37:
			case 42:
			case 43:
			case 40:
			case 41:
			case 46:
			case 47:
			case 44:
			case 45:
			case 48:
				v10 = 1;
				v3 = 1;
				break;
			default:
				v10 = 0;
				v3 = 3;
		}
		if (v4 > 0) {
			v9 = 1;
			int v13 = 12303291;
		} else {
			v9 = 0;
			int v13 = 2236962;
		}
		if (v10 == 1) {
			if (v9 == 1) {
				v6 = "Build over the existing blanket change.";
			} else {
				v6 = "Build a new blanket change.";
			}
		} else {
			switch (v11) {
				case 25:
				case 24:
				case 27:
				case 26:
				case 28:
					if (v9 == 1) {
						v6 = "Build over the existing statue.";
					} else {
						v6 = "Build a new statue.";
					}
					break;
				default:
					if (v9 == 1) {
						v6 = "Build over the existing customisation.";
					} else {
						v6 = "Build a new customisation.";
					}
			}
		}
	}
	int v2 = script_5216(v11);
	if (v10 == 0) {
		cs2method_10467(1, cs2method_10155(a0));
		if (v2 != -1) {
			cs2method_21121(new function<script_4882>(int a0,int a1,object a2) {
				script_4883(a0, a2, a1);
				return;
			}, new WidgetPointer(-32768,3), (string)v6, v3, "Isi", new WidgetPointer(v2));
		}
	}
	cs2method_21121(new function<script_4882>(object a0,int a1,int a2) {
		script_4883(a1, a0, a2);
		return;
	}, new WidgetPointer(-32768,3), (string)v6, v3, "Isi", new WidgetPointer(a0));
	return;
}
